build: Support 'make installcheck'
* configure.ac: Pass 'std-options' to AM_INIT_AUTOMAKE to check that the "--help" and "--version" options can be passed to installed programs. * Makefile.am (installcheck-local): New rule which checks the programs presence and configuration.
This commit is contained in:
parent
624ceb4480
commit
64ff2b1ddf
2 changed files with 17 additions and 1 deletions
16
Makefile.am
16
Makefile.am
|
|
@ -181,6 +181,22 @@ install-exec-hook:
|
|||
chmod u+s $(DESTDIR)$(bindir)/$${tcrontab}
|
||||
endif
|
||||
|
||||
installcheck-local:
|
||||
## Check that only expected programs are installed and configured
|
||||
tmcron=`echo mcron$(EXEEXT) | sed '$(transform_exe)'`; \
|
||||
test -e $(DESTDIR)$(bindir)/$${tmcron}
|
||||
if MULTI_USER
|
||||
tcrontab=`echo crontab$(EXEEXT) | sed '$(transform_exe)'`; \
|
||||
test -u $(DESTDIR)$(bindir)/$${tcrontab}
|
||||
tcron=`echo cron$(EXEEXT) | sed '$(transform_exe)'`; \
|
||||
test -e $(DESTDIR)$(sbindir)/$${tcron}
|
||||
else !MULTI_USER
|
||||
tcrontab=`echo crontab$(EXEEXT) | sed '$(transform_exe)'`; \
|
||||
test ! -u $(DESTDIR)$(bindir)/$${tcrontab}
|
||||
tcron=`echo cron$(EXEEXT) | sed '$(transform_exe)'`; \
|
||||
test ! -f $(DESTDIR)$(sbindir)/$${tcron}
|
||||
endif !MULTI_USER
|
||||
|
||||
## --------------- ##
|
||||
## Documentation. ##
|
||||
## --------------- ##
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ AC_CONFIG_SRCDIR([src/mcron.c])
|
|||
AC_CONFIG_AUX_DIR([build-aux])
|
||||
AC_REQUIRE_AUX_FILE([test-driver.scm])
|
||||
AC_REQUIRE_AUX_FILE([git-version-gen])
|
||||
AM_INIT_AUTOMAKE([subdir-objects -Wall -Wno-override])
|
||||
AM_INIT_AUTOMAKE([subdir-objects -Wall -Wno-override std-options])
|
||||
AM_SILENT_RULES([yes]) # enables silent rules by default
|
||||
|
||||
AC_CANONICAL_HOST
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue