diff options
author | Darren Tucker <dtucker@zip.com.au> | 2017-12-11 14:38:33 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2017-12-11 14:38:33 +1100 |
commit | 79c0e1d29959304e5a49af1dbc58b144628c09f3 (patch) | |
tree | 8ae564d1b5672d82a45e806bb52c5a177315c01f /Makefile.in | |
parent | f001de8fbf7f3faddddd8efd03df18e57601f7eb (diff) |
Add autogenerated dependency info to Makefile.
Adds a .depend file containing dependency information generated by
makedepend, which is appended to the generated Makefile by configure.
You can regen the file with "make -f Makefile.in depend" if necessary,
but we'll be looking at some way to automatically keep this up to date.
"no objection" djm@
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index ec4f3a68..b679e4f6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -298,9 +298,18 @@ catman-do: >$$base.0 ; \ done -distprep: catman-do +depend: depend-rebuild + rm -f .depend.bak + +depend-rebuild: + makedepend -w1000 -Y. -f .depend *.c 2>/dev/null + +depend-check: depend-rebuild + cmp .depend .depend.bak || (echo .depend stale && exit 1) + +distprep: catman-do depend-check $(AUTORECONF) - -rm -rf autom4te.cache + -rm -rf autom4te.cache .depend.bak install: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config install-nokeys: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf @@ -632,3 +641,5 @@ package: $(CONFIGFILES) $(MANPAGES) $(TARGETS) if [ "@MAKE_PACKAGE_SUPPORTED@" = yes ]; then \ sh buildpkg.sh; \ fi + +# @DEPEND@ |