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 ec4f3a683..b679e4f6e 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -298,9 +298,18 @@ catman-do: | |||
298 | >$$base.0 ; \ | 298 | >$$base.0 ; \ |
299 | done | 299 | done |
300 | 300 | ||
301 | distprep: catman-do | 301 | depend: depend-rebuild |
302 | rm -f .depend.bak | ||
303 | |||
304 | depend-rebuild: | ||
305 | makedepend -w1000 -Y. -f .depend *.c 2>/dev/null | ||
306 | |||
307 | depend-check: depend-rebuild | ||
308 | cmp .depend .depend.bak || (echo .depend stale && exit 1) | ||
309 | |||
310 | distprep: catman-do depend-check | ||
302 | $(AUTORECONF) | 311 | $(AUTORECONF) |
303 | -rm -rf autom4te.cache | 312 | -rm -rf autom4te.cache .depend.bak |
304 | 313 | ||
305 | install: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config | 314 | install: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config |
306 | install-nokeys: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf | 315 | install-nokeys: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf |
@@ -632,3 +641,5 @@ package: $(CONFIGFILES) $(MANPAGES) $(TARGETS) | |||
632 | if [ "@MAKE_PACKAGE_SUPPORTED@" = yes ]; then \ | 641 | if [ "@MAKE_PACKAGE_SUPPORTED@" = yes ]; then \ |
633 | sh buildpkg.sh; \ | 642 | sh buildpkg.sh; \ |
634 | fi | 643 | fi |
644 | |||
645 | # @DEPEND@ | ||