2005-12-28 11:10:01 -05:00
|
|
|
top_builddir=../../..
|
|
|
|
include $(top_builddir)/Makefile.config
|
|
|
|
|
|
|
|
PROG = sgml-parser
|
|
|
|
|
|
|
|
TESTDEPS = \
|
|
|
|
$(top_builddir)/src/dom/lib.o \
|
|
|
|
$(top_builddir)/src/util/error.o \
|
|
|
|
$(top_builddir)/src/osdep/stub.o \
|
|
|
|
$(top_builddir)/src/util/hash.o \
|
|
|
|
$(top_builddir)/src/util/memdebug.o \
|
|
|
|
$(top_builddir)/src/util/memory.o
|
|
|
|
|
|
|
|
sgml-parser: $(TESTDEPS) sgml-parser.o
|
|
|
|
$(call cmd,link)
|
|
|
|
|
2005-12-28 22:44:03 -05:00
|
|
|
TESTS = $(wildcard test-*)
|
|
|
|
|
|
|
|
$(TESTS):
|
|
|
|
@echo "*** $@ ***"; $(call shellquote,$(SHELL)) $@ $(TEST_OPTS)
|
|
|
|
|
|
|
|
test: sgml-parser $(TESTS)
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
rm -fr trash
|
2005-12-28 11:10:01 -05:00
|
|
|
|
|
|
|
CLEAN += sgml-parser.o
|
|
|
|
|
2005-12-28 22:44:03 -05:00
|
|
|
.PHONY: $(TESTS)
|
|
|
|
.NOPARALLEL:
|
|
|
|
|
2005-12-28 11:10:01 -05:00
|
|
|
include $(top_srcdir)/Makefile.lib
|
2005-12-28 22:44:03 -05:00
|
|
|
|
|
|
|
# Shell quote;
|
|
|
|
# Result of this needs to be placed inside ''
|
|
|
|
# XXX: Placed here because Vim cannot highlight things right afterwards
|
|
|
|
shq = $(subst ','\'',$(1))
|
|
|
|
# This has surrounding ''
|
|
|
|
shellquote = '$(call shq,$(1))'
|
|
|
|
|