Dir = $(PWD)
Options = --with-psl-file=$(Dir)/public_suffix_list.dat --with-psl-testfile=$(Dir)/tests/tests.txt
all: test
test: test-syntax test-rules
test-rules: libpsl-libicu
test-syntax:
@
cd linter; \
./pslint_selftest.sh; \
./pslint.py ../public_suffix_list.dat;
libpsl-config:
@
test -d libpsl || git clone --depth=1 https://github.com/rockdaboot/libpsl; \
cd libpsl; \
git pull; \
echo "EXTRA_DIST =" > gtk-doc.make; \
echo "CLEANFILES =" >> gtk-doc.make; \
autoreconf --install --force --symlink;
libpsl-libicu: libpsl-config
cd libpsl && ./configure -q -C --enable-runtime=libicu --enable-builtin=libicu $(Options) && make -s clean && make -s check -j4
libpsl-libidn2: libpsl-config
cd libpsl && ./configure -q -C --enable-runtime=libidn2 --enable-builtin=libidn2 $(Options) && make -s clean && make -s check -j4
libpsl-libidn: libpsl-config
cd libpsl && ./configure -q -C --enable-runtime=libidn --enable-builtin=libidn $(Options) && make -s clean && make -s check -j4