1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00
elinks/src/dom/test/Makefile

41 lines
839 B
Makefile
Raw Normal View History

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)
TESTS = $(wildcard test-*)
$(TESTS):
@echo "*** $@ ***"; $(call shellquote,$(SHELL)) $@ $(TEST_OPTS)
test: sgml-parser $(TESTS)
clean-local:
rm -fr trash
CLEAN += sgml-parser.o
.PHONY: $(TESTS)
.NOPARALLEL:
include $(top_srcdir)/Makefile.lib
# 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))'