aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Prebuild/tests/.svn/text-base/Makefile.svn-base
blob: 4a8ddf459d1cbecb2e9f48c3f93718e3c141f68e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# Executable
#

# Executables
PREBUILD = mono ../src/bin/Release/prebuild.exe /target makefile

# Files
PREBUILDS = $(wildcard *.prebuild)
RESULTS   = $(PREBUILDS:prebuild=results)
TESTS     = $(PREBUILDS:prebuild=test)

all: $(TESTS)

clean:
	rm -f *~ *.log
	rm -f $(RESULTS)

%.test: %.prebuild
	$(PREBUILD) /log $*.log /file $*.prebuild /ppi $*.results >& /dev/null
	if ! cmp $*.expected $*.results; then \
		echo $*.prebuild failed; \
		false; \
	fi