File: Makefile

package info (click to toggle)
libooc-xml 3.0-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 10,880 kB
  • ctags: 360
  • sloc: xml: 10,312; ansic: 1,681; sh: 798; makefile: 301; perl: 17
file content (21 lines) | stat: -rw-r--r-- 848 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
TEST_PROG=../../TestParser
scripts=./not-wf.sh ./valid.sh ./invalid.sh

.PHONY: all clean test ${TEST_PROG}

readme.html:
	(cd .. && gzip -cd 3rd-party-archives/xmltest.tar.gz | tar xfv -)
	patch -p1 <../3rd-party-archives/xmltest.diff

test-output:
	mkdir test-output test-output/valid test-output/valid/ext-sa test-output/valid/not-sa test-output/valid/sa test-output/not-wf test-output/not-wf/sa test-output/not-wf/ext-sa test-output/not-wf/not-sa test-output/invalid

${TEST_PROG}:
	cd `dirname ${TEST_PROG}` && ${OOC} -MOv `basename ${TEST_PROG}`

clean:
	for i in canonxml.html invalid/*.* not-wf/sa/*.* not-wf/not-sa/*.* not-wf/ext-sa/*.* readme.html valid; do rm -Rf "$$i"; done
	rm -Rf test-output

test: readme.html test-output ${TEST_PROG}
	set -e; for i in ${scripts}; do env TEST_PROG="${TEST_PROG}" DIFF="${DIFF}" $$i || exit 1; done