Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in pax-utils/tests: Makefile
Date: Tue, 30 Dec 2008 12:34:24
Message-Id: E1LHdng-0000hT-9U@stork.gentoo.org
1 vapier 08/12/30 12:34:20
2
3 Added: Makefile
4 Log:
5 add test framework
6
7 Revision Changes Path
8 1.1 pax-utils/tests/Makefile
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/tests/Makefile?rev=1.1&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/tests/Makefile?rev=1.1&content-type=text/plain
12
13 Index: Makefile
14 ===================================================================
15 SUBDIRS = source
16
17 .PHONY: all test check clean
18 all test check clean:
19 $(MAKE) $(patsubst %,subdir_%_$@,$(SUBDIRS))
20
21 # subdir_source_all
22 _SUBTAR = $(patsubst subdir_%,%,$@)
23 _SUBDIR = $(shell expr $(_SUBTAR) : '\(.*\)_[^_]*$$')
24 _TARGET = $(shell expr $(_SUBTAR) : '.*_\([^_]*\)$$')
25 subdir_%:
26 $(MAKE) -C $(_SUBDIR) $(_TARGET)