X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=Makefile-head.am;h=ebcd82a7cf5be6f324248412850fcb172af1d420;hb=849af2cb0075f9ed02865a5362f9ed45bc028f20;hp=8945bf39753094e38663111005a9fa5561d9887a;hpb=2abdd1d7d723cd2a874b658cfe7f2d68461dd572;p=captive.git diff --git a/Makefile-head.am b/Makefile-head.am index 8945bf3..ebcd82a 100644 --- a/Makefile-head.am +++ b/Makefile-head.am @@ -46,6 +46,7 @@ DEFAULT_INCLUDES= INCLUDES= lib_LTLIBRARIES= pkginclude_HEADERS= +bin_PROGRAMS= sbin_PROGRAMS= noinst_HEADERS= # Prevent: noinst_DATA was already defined in condition TRUE, which implies condition MAINTAINER_MODE_TRUE @@ -61,6 +62,10 @@ INCLUDES+=-DLOCALEDIR=\"$(localedir)\" INCLUDES+=-I$(top_srcdir)/src/libcaptive/include INCLUDES+=-I$(top_srcdir)/intl +# Force delete of target file if command fails. +# Generally better behaviour but it requires GNU make. Harmless otherwise. +.DELETE_ON_ERROR: + # This target is used during ./autogen.pl POTFILES.in generation distfiles: $(DISTFILES) @@ -122,9 +127,25 @@ endif # to get $(COMPILE) variable definition. MAINTAINERCLEANFILES+=.include_test_false.c BUILT_SOURCES+=.include_test_false.c -if IS_FALSE +if NEVER noinst_PROGRAMS=.include_test_false endif .include_test_false.c: @touch $@ +if HAVE_PERL +%.pod: %.pod.pl + $(PERL) $< >$@ + +endif +if HAVE_POD2MAN +%.1: %.pod + $(POD2MAN) --section=1 $< >$@ + +%.7: %.pod + $(POD2MAN) --section=7 $< >$@ + +%.8: %.pod + $(POD2MAN) --section=8 $< >$@ + +endif