File: makefile

package info (click to toggle)
snacc 1.3bbn-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,808 kB
  • ctags: 4,284
  • sloc: ansic: 37,145; sh: 9,226; cpp: 5,149; yacc: 2,215; makefile: 913; lex: 517; sed: 4
file content (45 lines) | stat: -rw-r--r-- 1,038 bytes parent folder | download | duplicates (2)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# c-examples/makefile
#
# $Header: /var/cvsroot/debian/snacc/c-examples/makefile,v 1.1 2001/01/27 01:17:45 debacle Exp $
# $Log: makefile,v $
# Revision 1.1  2001/01/27 01:17:45  debacle
# Added missing files from older distribution.
#
# Revision 1.2  1995/07/24 20:38:56  rj
# `cd && make' instead of `cd; make'.
#
# changed `_' to `-' in file names.
#

SUBDIRS		= test-lib simple any snmp

#-------------------------------------------------------------------------------

.PHONY:	implicit_default
implicit_default::
		$(MAKE) subdirs

subdirs::	$(SUBDIRS)
$(SUBDIRS)::
		cd $@ && $(MAKE) $(subtarget)

# the following hack is needed for older make versions (gmake doesn't need it):
init-depend::
		@for dir in $(SUBDIRS); do\
		  test -f $$dir/dependencies || touch $$dir/dependencies;\
		done

.DEFAULT::
		$(MAKE) subdirs subtarget=$@

distfiles::
		echo makefile
		for dir in $(SUBDIRS); do\
		  subfiles=`cd $$dir && $(MAKE) -s $@`;\
		  for file in $$subfiles; do\
		    echo "$$dir/$$file";\
		  done;\
		done

# dummy:
install::