source: php/trunk/unittest/makefile@ 2

Last change on this file since 2 was 2, checked in by cla, 14 years ago

rdfint

  • initial version
  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1
2# RDFInt - 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
20TESTSCRIPT=unittest.php
21
22# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
23
24# @for i in `find . -maxdepth 1 -type d` do echo $(i)
25# --- phony targets
26
27.PHONY: all changedir
28
29all:
30ifeq ($(OS), Windows_NT)
31 -@for /d %%a in (*) do @make -s SUBDIR=%%a changedir
32else
33 -@for d in `find . -maxdepth 1 -type d`; do make -s SUBDIR=$$d changedir; done
34endif
35
36changedir:
37ifneq ($(SUBDIR), .)
38ifneq ($(SUBDIR), ./.svn)
39 make -s --directory $(SUBDIR) SUBDIR=$(SUBDIR) -f ../makefile run
40endif
41endif
42
43run:
44 @echo =====================================
45 @echo $(SUBDIR)
46 @phpunit $(TESTSCRIPT)
Note: See TracBrowser for help on using the repository browser.