File: directories.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 (45 lines) | stat: -rw-r--r-- 806 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
37
38
39
40
41
42
43
44
45
###	SPAR <http://www.cpan.org/scripts/>
###	1	755	1118558856	1212336975	.makepprc
--rm-stale
###	29	644	1143572904	1234386298	Makeppfile
#
# Test making files in directories that don't exist yet.
#

.PHONY: all

perl_begin
  # Make sure that '/' gets parsed properly (not as ''!)
  use Mpp::File;
  die unless file_info('/') == file_info('/.');
perl_end

all: a b c

%: subdir/%
	&echo $@ -o $@
	&cat $< -o>>$@

subdir/$( a b c): subdir
	&echo $@ -o $@

subdir:
	&mkdir $@

subdir2/Makeppfile:
	&mkdir $(dir $@)
	&touch $@

load_makefile subdir2/Makeppfile
###	D	755	1067451874	965619410	answers
###	2	644	1067451874	965619363	answers/a
a
subdir/a
###	2	644	1067451874	965619363	answers/b
b
subdir/b
###	2	644	1067451874	965619363	answers/c
c
subdir/c
###	1	644	1067451874	1190053826	answers/n_files
8 1 0