Debian Codegraph @

tests/Makefile

raw symbols SCIP
1 #
2 # Copyright (C) 2012-2025 Alexis Bienvenüe <[email protected]>
3 #
4 # This file is part of Auto-Multiple-Choice
5 #
6 # Auto-Multiple-Choice is free software: you can redistribute it
7 # and/or modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation, either version 2 of
9 # the License, or (at your option) any later version.
10 #
11 # Auto-Multiple-Choice is distributed in the hope that it will be
12 # useful, but WITHOUT ANY WARRANTY; without even the implied warranty
13 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with Auto-Multiple-Choice. If not, see
18 # <http://www.gnu.org/licenses/>.
19
20 SHELL=/bin/sh
21
22 include ../Makefile-all.conf
23
24 export PERLPATH
25
26 SVG=$(shell find . -name '*.svg')
27 EPS=$(SVG:.svg=.eps)
28
29 all: $(EPS)
30
31 %.eps: %.svg
32 # old-style or new-style arguments
33 inkscape --export-eps=$@ $< || inkscape --export-type=eps -o $@ $<
34
35 clean:
36 -rm $(EPS)
37
38 test: $(EPS) FORCE
39 @echo "Using qpdf"
40 ./all_tests
41 @echo "Using pdftk"
42 ./selected_tests --extract-with pdftk
43
44 blind-test: $(EPS) FORCE
45 @echo "Using qpdf"
46 ./all_tests --blind
47 @echo "Using pdftk"
48 ./selected_tests --blind --extract-with pdftk
49 ifneq (,$(wildcard /usr/local/bin/sejda-console))
50 @echo "Using sejda-console"
51 ./selected_tests --blind --extract-with sejda-console
52 endif
53
54 FORCE: ;
55
56 .PHONY: FORCE all clean test blind-test
57