From 58fddef1dacb2900b3ad047b83b1edb7a5ee6b4e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 26 Apr 2014 12:03:55 +0100 Subject: [PATCH] clean: Remove miniexpect.3 if we have pod2man, otherwise leave it. --- Makefile.am | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 -- 1.8.3.1