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 (24 lines) | stat: -rw-r--r-- 860 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
22
23
24
TEST_PROG=../../TestParser
scripts=./not-wf.sh ./valid.sh ./invalid.sh

.PHONY: all clean test ${TEST_PROG}

cxml.html:
	(cd .. && gzip -cd 3rd-party-archives/sun.tar.gz | tar xfv -)
	patch -p1 <../3rd-party-archives/sun.diff
	mv valid/sun-valid.xml not-wf/sun-not-wf.xml invalid/sun-invalid.xml .
	rm -f not-wf/lang0[1-6].xml  # no longer not-wf since First Ed. E73
	rm -f invalid/pe01.*	     # external pe well-formed by definition

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

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

clean:
	for i in cxml.html error invalid/*.* not-wf/*.* sun-*.xml valid; do rm -Rf "$$i"; done
	rm -Rf test-output

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