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.
This commit is contained in:
Darren Tucker 2020-05-02 18:29:40 +10:00
parent d25d630d24
commit 83657eac42
1 changed files with 4 additions and 3 deletions

View File

@ -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