From 1bc66156519eeef6e18bd23b9c3d429314db8f82 Mon Sep 17 00:00:00 2001 From: hjp Date: Tue, 5 Jul 2016 19:48:45 +0000 Subject: [PATCH] Improve targets clean, distclean --- dns/GNUmakefile | 4 ++-- dns/cfg/GNUmakefile | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dns/GNUmakefile b/dns/GNUmakefile index 84b7159..1ad5eb3 100644 --- a/dns/GNUmakefile +++ b/dns/GNUmakefile @@ -12,10 +12,10 @@ install: \ clean: - rm -f *.bak *.o core gethostbyname + rm -f *.bak *.o core gethostbyaddr gethostbyname fqdn check distclean: clean - rm -f *.d + rm -f *.d GNUmakevars GNUmakerules cfg/%: $(MAKE) -C cfg all diff --git a/dns/cfg/GNUmakefile b/dns/cfg/GNUmakefile index f925f23..642ef5a 100644 --- a/dns/cfg/GNUmakefile +++ b/dns/cfg/GNUmakefile @@ -2,3 +2,6 @@ all: have_hstrerror.h %.h: %.sh CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' sh $^ > $@ + +clean: + rm *.h