From: Richard W.M. Jones Date: Sat, 26 Apr 2014 11:03:55 +0000 (+0100) Subject: clean: Remove miniexpect.3 if we have pod2man, otherwise leave it. X-Git-Tag: v1.1~25 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=58fddef1dacb2900b3ad047b83b1edb7a5ee6b4e;p=miniexpect.git clean: Remove miniexpect.3 if we have pod2man, otherwise leave it. --- diff --git a/Makefile.am b/Makefile.am index 6139816..d6e0a24 100644 --- a/Makefile.am +++ b/Makefile.am @@ -45,11 +45,18 @@ test_spawn_SOURCES = test-spawn.c test_spawn_CFLAGS = $(PCRE_CFLAGS) -Wall test_spawn_LDADD = libminiexpect.la +# Clean. + +CLEANFILES = *~ + # Man pages. man_MANS = miniexpect.3 if HAVE_POD2MAN + +CLEANFILES += miniexpect.3 + miniexpect.3: miniexpect.pod $(POD2MAN) \ --section 3 \ @@ -57,8 +64,5 @@ miniexpect.3: miniexpect.pod -c "Library functions" \ $< > $@-t mv $@-t $@ -endif - -# Clean. -CLEANFILES = *~ +endif