aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 50a6610cff28b3f372ffcd6397f29019e52406ff (plain)
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
##  Makefile.am -- an automake template for a Makefile.in file
##  Copyright (C) 2004, 2005  Olaf Meeuwissen
##  Copyright (C) 2019 SEIKO EPSON Corporation
##
##  This file is part of the "Image Scan!" build infra-structure.
##
##  The "Image Scan!" build infra-structure is free software.
##  You can redistribute it and/or modify it under the terms of the GNU
##  General Public License as published by the Free Software Foundation;
##  either version 2 of the License or at your option any later version.
##
##  This program is distributed in the hope that it will be useful, but
##  WITHOUT ANY WARRANTY;  without even the implied warranty of FITNESS
##  FOR A PARTICULAR PURPOSE or MERCHANTABILITY.
##  See the GNU General Public License for more details.
##
##  You should have received a verbatim copy of the GNU General Public
##  License along with this program; if not, write to:
##
##      Free Software Foundation, Inc.
##      59 Temple Place, Suite 330
##      Boston, MA  02111-1307  USA

##  Note: SUBDIRS are recursed in the order listed.

SUBDIRS = \
	lib \
	backend \
	non-free \
	frontend \
	utils \
	doc

if ENABLE_FRONTEND
SUBDIRS += po
endif


ACLOCAL_AMFLAGS = -I m4

M4_MACROS = \
	m4/codeset.m4 \
	m4/gettext.m4 \
	m4/glibc21.m4 \
	m4/iconv.m4 \
	m4/intdiv0.m4 \
	m4/intmax.m4 \
	m4/inttypes-pri.m4 \
	m4/inttypes.m4 \
	m4/inttypes_h.m4 \
	m4/isc-posix.m4 \
	m4/lcmessage.m4 \
	m4/lib-ld.m4 \
	m4/lib-link.m4 \
	m4/lib-prefix.m4 \
	m4/longdouble.m4 \
	m4/longlong.m4 \
	m4/nls.m4 \
	m4/po.m4 \
	m4/printf-posix.m4 \
	m4/progtest.m4 \
	m4/signed.m4 \
	m4/size_max.m4 \
	m4/stdint_h.m4 \
	m4/uintmax_t.m4 \
	m4/ulonglong.m4 \
	m4/wchar_t.m4 \
	m4/wint_t.m4 \
	m4/xsize.m4

EXTRA_DIST = \
	$(M4_MACROS) \
	gettext.h \
	ltmain.sh.diff \
	m4/libtool.m4 \
	NEWS.ja \
	README.ja \
	bootstrap \
	\
	debian/changelog \
	debian/control \
	debian/control.in \
	debian/copyright \
	debian/rules \
	\
	debian/dll.conf \
	debian/$(PACKAGE_TARNAME).postinst.in \
	debian/$(PACKAGE_TARNAME).postrm.in \
	debian/$(PACKAGE_TARNAME).preinst.in \
	debian/$(PACKAGE_TARNAME).prerm.in \
	debian/$(PACKAGE_TARNAME).docs \
	debian/$(PACKAGE_TARNAME).menu \
	debian/$(PACKAGE_TARNAME).examples \
	\
	$(PACKAGE_TARNAME).desktop \
	$(PACKAGE_TARNAME).spec


update-changelog:
	> $(srcdir)/ChangeLog


##  	Source tarball related targets

##  Things to do before we pack up the sources in a tarball.

dist-hook: \
	deb-check-control \
	rpm-check-spec

##  	Debian packaging support related targets

##  Convenience variables to make writing the various Debian related
##  targets a bit easier.

DEB_PACKAGE_NAME = $(PACKAGE_TARNAME)_$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)

##  A little QA check to make sure we don't accidentally release with
##  a control file that contains substitutable parameters.

deb-check-control: $(srcdir)/debian/control
	status=; \
	for f in $^; do \
	    if `LC_ALL=C $(EGREP) '@\w+@' $$f >/dev/null 2>&1`; then \
		echo "$$f contains unsubstituted variables; not releasing"; \
		status=1; \
	    fi; \
	done; \
	test x = x$$status || exit 1

.PHONY: deb-check-control


##  ^L  RPM packaging related targets

##  A little QA check to make sure we don't accidentally release with
##  a spec file that contains substitutable parameters.

rpm-check-spec: $(srcdir)/$(PACKAGE_TARNAME).spec
	status=; \
	for f in $^; do \
	  if `LC_ALL=C $(EGREP) '@\w+@' $$f >/dev/null 2>&1`; then \
	    echo "$$f has unsubstituted variables; not releasing" 1>&2; \
	    status=1; \
	  fi; \
	done; \
	test x = x$$status || exit 1

.PHONY: rpm-check-spec

MAINTAINERCLEANFILES =
MAINTAINERCLEANLOCAL =