File: dir.mk

package info (click to toggle)
tkisem 4.5.12-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 964 kB
  • ctags: 1,372
  • sloc: cpp: 4,844; tcl: 3,047; asm: 1,991; makefile: 335; ansic: 269; sh: 155
file content (16 lines) | stat: -rw-r--r-- 320 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Makefile business common to directories: Basically
# just redirect make targets on to the $(SUBDIRS).

# Cheesy trick to get newlines into output of foreach:
define NL


endef

all clean realclean depend install:
	$(foreach d, $(SUBDIRS), -$(MAKE) -C $d $@ $(NL))

clean realclean: dirclean

dirclean:
	@rm -f *~ core