Makefile: only clean PCRE2 directory if it is configured in

This commit is contained in:
David Adam 2015-10-15 17:18:02 +08:00
parent 9788566ba4
commit b7e991c4b7

View file

@ -880,7 +880,9 @@ distclean: clean
# deleted we won't be able to regenerate them # deleted we won't be able to regenerate them
clean: clean:
ifdef EXTRA_PCRE2
$(MAKE) -C $(PCRE2_DIR) clean $(MAKE) -C $(PCRE2_DIR) clean
endif
rm -f obj/*.o *.o doc.h doc.tmp doc_src/*.doxygen doc_src/*.cpp doc_src/*.o doc_src/commands.hdr rm -f obj/*.o *.o doc.h doc.tmp doc_src/*.doxygen doc_src/*.cpp doc_src/*.o doc_src/commands.hdr
rm -f tests/tmp.err tests/tmp.out tests/tmp.status tests/foo.txt rm -f tests/tmp.err tests/tmp.out tests/tmp.status tests/foo.txt
rm -f $(PROGRAMS) fish_tests key_reader rm -f $(PROGRAMS) fish_tests key_reader