Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. Dir = $(PWD)
  2. Options = --with-psl-file=$(Dir)/public_suffix_list.dat --with-psl-testfile=$(Dir)/tests/tests.txt
  3. all: test
  4. test: test-syntax test-rules
  5. test-rules: libpsl-libicu
  6. test-syntax:
  7. @
  8. cd linter; \
  9. ./pslint_selftest.sh; \
  10. ./pslint.py ../public_suffix_list.dat;
  11. libpsl-config:
  12. @
  13. test -d libpsl || git clone --depth=1 https://github.com/rockdaboot/libpsl; \
  14. cd libpsl; \
  15. git pull; \
  16. echo "EXTRA_DIST =" > gtk-doc.make; \
  17. echo "CLEANFILES =" >> gtk-doc.make; \
  18. autoreconf --install --force --symlink;
  19. # Test PSL data with libicu (IDNA2008 UTS#46)
  20. libpsl-libicu: libpsl-config
  21. cd libpsl && ./configure -q -C --enable-runtime=libicu --enable-builtin=libicu $(Options) && make -s clean && make -s check -j4
  22. # TEST PSL data with libidn2 (IDNA2008)
  23. libpsl-libidn2: libpsl-config
  24. cd libpsl && ./configure -q -C --enable-runtime=libidn2 --enable-builtin=libidn2 $(Options) && make -s clean && make -s check -j4
  25. # TEST PSL data with libidn (IDNA2003)
  26. libpsl-libidn: libpsl-config
  27. cd libpsl && ./configure -q -C --enable-runtime=libidn --enable-builtin=libidn $(Options) && make -s clean && make -s check -j4