File: 2005_08_16_build_cache_clean.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 (32 lines) | stat: -rw-r--r-- 859 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
###	SPAR <http://www.cpan.org/scripts/>
###	14	664	1124224809	1124226006	Makeppfile
ANIMALS=\
	cat\
	dog\
	cow\
	wolf\
	pig

$(phony default): $(ANIMALS)

$(ANIMALS):
	&echo $@ -o >>$@

$(phony clean):
	&rm -f $(ANIMALS)
###	15	755	1152636440	1125017144	makepp_test_script.pl
# Create the build cache:
makepp \'builtin', qw{-MMpp::BuildCacheControl create ./build_cache};

makepp qw{--build-cache build_cache --force_copy_from_bc};

# clean (incoming.dir should be empty already, so use age threshold of 2 hours)
# threshold for everything else covers stuff less than 1 day in the future.
makepp \'builtin', qw{-MMpp::BuildCacheControl clean --mtime +-1 ./build_cache};

unlink './build_cache/build_cache_options.pl' or die;
rmdir './build_cache/incoming.dir' || die;

rmdir './build_cache' || die;

makepp 'clean';			# TODO: Is this really part of the test?