1 |
|
---|
2 | # RDFInt.php - RDF Interfaces for PHP
|
---|
3 | # Copyright 2011 netlabs.org
|
---|
4 | # Author: Christian Langanke, Adrian Gschwend
|
---|
5 | #
|
---|
6 | # Licensed under the Apache License, Version 2.0 (the "License");
|
---|
7 | # you may not use this file except in compliance with the License.
|
---|
8 | # You may obtain a copy of the License at
|
---|
9 | #
|
---|
10 | # http://www.apache.org/licenses/LICENSE-2.0
|
---|
11 | #
|
---|
12 | # Unless required by applicable law or agreed to in writing, software
|
---|
13 | # distributed under the License is distributed on an "AS IS" BASIS,
|
---|
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
15 | # See the License for the specific language governing permissions and
|
---|
16 | # limitations under the License.
|
---|
17 |
|
---|
18 | # CONFIGURE HERE
|
---|
19 |
|
---|
20 | TESTSCRIPT=unittest.php
|
---|
21 |
|
---|
22 | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
---|
23 |
|
---|
24 | # determine os dependent values
|
---|
25 | ifeq ($(OS), Windows_NT)
|
---|
26 | CAT=type
|
---|
27 | else
|
---|
28 | CAT=cat
|
---|
29 | endif
|
---|
30 |
|
---|
31 | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
---|
32 |
|
---|
33 | # @for i in `find . -maxdepth 1 -type d` do echo $(i)
|
---|
34 | # --- phony targets
|
---|
35 |
|
---|
36 | .PHONY: help all changedir
|
---|
37 |
|
---|
38 |
|
---|
39 | ifneq ($(TESTCASE),)
|
---|
40 | all:
|
---|
41 | -@make -s SUBDIR=$(TESTCASE) changedir
|
---|
42 | else
|
---|
43 |
|
---|
44 | help:
|
---|
45 | @$(CAT) help.txt
|
---|
46 |
|
---|
47 | ifeq ($(OS), Windows_NT)
|
---|
48 | all:
|
---|
49 | -@for /d %%a in (*) do @make -s SUBDIR=%%a changedir
|
---|
50 | else
|
---|
51 | all:
|
---|
52 | -@for d in `find . -maxdepth 1 -type d`; do make -s SUBDIR=$$d changedir; done
|
---|
53 | endif
|
---|
54 | endif
|
---|
55 |
|
---|
56 | changedir:
|
---|
57 | ifneq ($(SUBDIR), .)
|
---|
58 | ifneq ($(SUBDIR), ./.svn)
|
---|
59 | make -s --directory $(SUBDIR) SUBDIR=$(SUBDIR) -f ../makefile run
|
---|
60 | endif
|
---|
61 | endif
|
---|
62 |
|
---|
63 | run:
|
---|
64 | @echo =====================================
|
---|
65 | @echo $(SUBDIR)
|
---|
66 | @phpunit $(TESTSCRIPT)
|
---|