+Conflicts: ORBit2 >= 2.7.0
[captive.git] / Makefile-head.am
index 8945bf3..ebcd82a 100644 (file)
@@ -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