File: 2009_12_27_skip_word_unix.test

package info (click to toggle)
makepp 2.0.98.5-2.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,744 kB
  • sloc: perl: 15,893; makefile: 38; javascript: 25; sh: 1
file content (36 lines) | stat: -rw-r--r-- 875 bytes parent folder | download | duplicates (3)
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
###	SPAR <http://www.cpan.org/scripts/>
###	1	644	1329052295	1329052295	is_relevant.pl
have_cc
###	29	644	1289337252	1289337252	Makeppfile
# The 1st rule used complain that it did not find a parser in the recursive
# parse, as did the 2nd in the outer parse, which additionally didn't recognize
# the compiler.  This is history because the new special parsers don't recurse.

$(phony all): $( a/a b c d).o

a/a.o:
	if [ ! -d a ]; then mkdir a; fi
	$(CC) -E a.c > $(output)


b.o: : parser shell
	trap '$(CC) -E c.c > $(output)' 0


register-parser echo skip-word

c.o:
	echo libtool $(CC) -E b.c > $(output)

d.o: : parser none
	echo libtool $(CC) -E d.c > $(output)


%.c: :last_chance
	&echo '#include "$(stem).h"' -o $(output)

%.h: :last_chance
	&echo 'int f();' -o $(output)
###	D	755	1261610241	1261610241	answers
###	1	644	1289337201	1289337201	answers/n_files
10 1 0