-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
86 lines (73 loc) · 3.67 KB
/
Makefile.am
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
bin_PROGRAMS = pnmunpaper
MANPAGE_XSL ?= http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl
pnmunpaper_SOURCES = src/unpaper.c include/unpaper.h
pnmunpaper_CFLAGS = -I./include
pnmunpaper_LDADD = libunpaper.la
pkglib_LTLIBRARIES = libunpaper.la
libunpaper_la_SOURCES = src/error.c src/file.c src/imageprocess.c src/parse.c src/tools.c include/unpaper.h
libunpaper_la_CFLAGS = -I./include
libunpaper_la_LDFLAGS = -version-info 5:3:5 -no-undefined
include_HEADERS = include/unpaper.h
dist_doc_DATA = NEWS COPYING README AUTHORS TODO
dist_man_MANS = pnmunpaper.1
dist_html_DATA = doc/pnmunpaper.html doc/index.html
imgdir = $(htmldir)/img
dist_img_DATA = doc/img/_after.png doc/img/_arrow.png \
doc/img/_before.png doc/img/blackfilter-detail.png \
doc/img/blackfilter.png doc/img/blurfilter-detail.png \
doc/img/blurfilter.png doc/img/border-align.png \
doc/img/border-scan.png doc/img/deskew-detail1.png \
doc/img/deskew-detail2.png doc/img/deskew.png \
doc/img/documentation.odg doc/img/input-pages.png \
doc/img/layout-templates.png doc/img/mask-center.png \
doc/img/mask-scan-detail1.png \
doc/img/mask-scan-detail2.png doc/img/mask-scan.png \
doc/img/multiple-input-files.png \
doc/img/multiple-output-files.png \
doc/img/noisefilter.png doc/img/nospam.js \
doc/img/output-pages.png doc/img/processing-order.png \
doc/img/sheetspages.png \
doc/img/standard-deviation.png doc/img/style.css \
doc/img/x-click-but04.gif
TESTS = tests/runtestA1.sh tests/runtestB1.sh tests/runtestB2.sh \
tests/runtestB3.sh tests/runtestC1.sh tests/runtestC2.sh \
tests/runtestC3.sh tests/runtestD1.sh tests/runtestD2.sh \
tests/runtestD3.sh tests/runtestE1.sh tests/runtestE2.sh \
tests/runtestE3.sh tests/runtestF1.sh tests/runtestF2.sh \
tests/runtestF3.sh tests/runtestG1.sh tests/runtestG2.sh \
tests/runtestG3.sh
XFAIL_TESTS = tests/runtestG3.sh
EXTRA_DIST = $(TESTS) tests/imgsrc001.png tests/imgsrc002.png \
tests/imgsrc003.png tests/imgsrc004.png \
tests/imgsrc005.png tests/imgsrcE001.png \
tests/imgsrcE002.png tests/imgsrcE003.png
check_DATA = tests/imgsrc001.pbm tests/imgsrc002.pbm \
tests/imgsrc003.ppm tests/imgsrc004.pgm \
tests/imgsrc005.pbm tests/imgsrcE001.pbm \
tests/imgsrcE002.pbm tests/imgsrcE003.pbm
CLEANFILES = $(check_DATA) tests/.dirstamp tests/resultsA1.pbm \
tests/resultsB1.ppm tests/resultsB2.ppm \
tests/resultsB3.ppm tests/resultsC1.pbm \
tests/resultsC2.pbm tests/resultsC3.pbm \
tests/resultsD1.ppm tests/resultsD2.ppm \
tests/resultsD3.ppm tests/resultsE001.pbm \
tests/resultsE002.pbm tests/resultsE003.pbm \
tests/resultsE004.pbm tests/resultsE005.pbm \
tests/resultsE006.pbm tests/resultsE201.pbm \
tests/resultsE202.pbm tests/resultsE301.pbm \
tests/resultsE302.pbm tests/resultsF11.pbm \
tests/resultsF21.pbm tests/resultsF3.pbm \
tests/resultsG1.pbm tests/resultsG2.pbm \
tests/resultsG3.pbm
tests/.dirstamp:
$(MKDIR_P) tests
touch tests/.dirstamp
tests/imgsrc%.pbm tests/imgsrc%.ppm tests/imgsrc%.pgm: tests/imgsrc%.png tests/.dirstamp
$(PNGTOPNM) $< > $@
tests/results%.png: tests/results%.pbm tests/.dirstamp
$(PNMTOPNG) $< > $@
%.1: %.1.xml
$(AM_V_GEN)$(XSLTPROC) \
--stringparam man.copyright.section.enable 0 \
--stringparam man.authors.section.enabled 0 \
$(MANPAGE_XSL) $<