File: Makefile.am

package info (click to toggle)
libpsl 0.21.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 46,828 kB
  • sloc: ansic: 2,468; python: 515; sh: 309; makefile: 262
file content (36 lines) | stat: -rw-r--r-- 1,324 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
DEFS = @DEFS@ \
       -DSRCDIR=\"$(srcdir)\" \
       -DPSL_FILE=\"$(PSL_FILE)\" \
       -DPSL_TESTFILE=\"$(PSL_TESTFILE)\" \
       -DPSL_DAFSA=\"psl.dafsa\" \
       -DPSL_ASCII_DAFSA=\"psl_ascii.dafsa\"
AM_CPPFLAGS = -I$(top_srcdir)/include
LDADD = ../src/libpsl.la
AM_LDFLAGS = -no-install

# ./configure'd with '--disable-builtin'
# Do not call test-is-public-builtin here: it does not make sense.
# Do not call test-registrable-domain here: it would fail due to missing punycode entries in PSL file.
PSL_TESTS = test-is-public test-is-public-all test-is-cookie-domain-acceptable

if ENABLE_BUILTIN
  PSL_TESTS += test-is-public-builtin test-registrable-domain
endif

check_PROGRAMS = $(PSL_TESTS)

TESTS_ENVIRONMENT = TESTS_VALGRIND="@VALGRIND_ENVIRONMENT@"
TESTS = $(PSL_TESTS)

# dafsa.psl and dafsa_ascii.psl must be created before any test is executed
# check-local target works in parallel to the tests, so the test suite will likely fail
BUILT_SOURCES = psl.dafsa psl_ascii.dafsa
psl.dafsa: $(PSL_FILE)
	$(PYTHON) $(top_srcdir)/src/psl-make-dafsa --output-format=binary "$(PSL_FILE)" psl.dafsa
psl_ascii.dafsa: $(PSL_FILE)
	$(PYTHON) $(top_srcdir)/src/psl-make-dafsa --output-format=binary --encoding=ascii "$(PSL_FILE)" psl_ascii.dafsa

clean-local:
	rm -f psl.dafsa psl_ascii.dafsa

EXTRA_DIST = meson.build