Improve targets clean, distclean

This commit is contained in:
hjp 2016-07-05 19:48:45 +00:00
parent 9fa521b60c
commit 1bc6615651
2 changed files with 5 additions and 2 deletions

View File

@ -12,10 +12,10 @@ install: \
clean: clean:
rm -f *.bak *.o core gethostbyname rm -f *.bak *.o core gethostbyaddr gethostbyname fqdn check
distclean: clean distclean: clean
rm -f *.d rm -f *.d GNUmakevars GNUmakerules
cfg/%: cfg/%:
$(MAKE) -C cfg all $(MAKE) -C cfg all

View File

@ -2,3 +2,6 @@ all: have_hstrerror.h
%.h: %.sh %.h: %.sh
CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' sh $^ > $@ CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' sh $^ > $@
clean:
rm *.h