summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2020-05-02 18:29:40 +1000
committerDarren Tucker <dtucker@dtucker.net>2020-05-02 18:29:40 +1000
commit83657eac42941f270c4b02b2c46d9a21f616ef99 (patch)
treece672a29524a4ba7e2d8e7008d4e309cec91b229
parentd25d630d24c5a1c64d4e646510e79dc22d6d7b88 (diff)
Remove use of tail for 'make depend'.
Not every tail supports +N and we can do with out it so just remove it. Prompted by mforney at mforney.org.
-rw-r--r--Makefile.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 304d96cd..cf9c9b38 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -350,10 +350,11 @@ depend: depend-rebuild
rm -f .depend.bak
depend-rebuild:
- rm -f config.h
- touch config.h
+ rm -f config.h .depend
+ touch config.h .depend
makedepend -w1000 -Y. -f .depend *.c 2>/dev/null
- (head -2 .depend; tail +3 .depend | sort) >.depend.tmp
+ (echo '# Automatically generated by makedepend.'; \
+ echo '# Run "make depend" to rebuild.'; sort .depend ) >.depend.tmp
mv .depend.tmp .depend
rm -f config.h