File: Makefile.depend

package info (click to toggle)
lam 6.5.6-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 15,464 kB
  • ctags: 11,670
  • sloc: ansic: 101,210; cpp: 12,146; sh: 10,821; makefile: 4,050; fortran: 218
file content (26 lines) | stat: -rw-r--r-- 1,017 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- makefile -*-
#
# Contains the "depend" target so that we can generate dependencies
# correctly.  Subdirectory-spanning part stolen from an
# automake-generated Makefile.
#
# This beast just got too complicated for a Makefile stub, so I turned
# it into a standalone script.  MUCH easier that way, so that we don't
# have to fight Makefile quoting rules, at least.
#
# We must explicitly add -I$(top_builddir)/share/include, because
# that's where <lam_config.h> will be.
#

depend: $(SOURCEFILES)
	@ $(SH) $(top_srcdir)/config/run_makedepend "$(srcdir)" \
	  "$(MAKEDEPEND)" "$(DEPEND_SUFFIX)" \
	  "$(CFLAGS) $(INCLUDES) $(LAM_DEPDIRS) $(EXTRA_DEPFLAGS) -I$(top_builddir)/share/include" \
	  $(SOURCEFILES)
	@set fnord $(MAKEFLAGS); amf=$$2; \
	target=`echo $@ | sed s/-recursive//`; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  echo "Making $$target in $$subdir"; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target) \
	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
	done;