-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcommon.am
More file actions
32 lines (28 loc) · 1.05 KB
/
common.am
File metadata and controls
32 lines (28 loc) · 1.05 KB
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
#
# Brother sane backend Driver
#
# Copyright (C) 2017 Norbert Eicker <norbert.eicker@gmx.de>
#
# This file may be distributed under the terms of the GNU GENERAL PUBLIC LICENSE
# as defined in the file Copying included in the packaging of this file.
#
# AM_CPPFLAGS = -I$(top_srcdir)/include -DNDEBUG @todo NDEBUG might be good
AM_CPPFLAGS = -I$(top_srcdir)/include
subst_verbose = $(subst_verbose_$(V))
subst_verbose_ = $(subst_verbose_$(AM_DEFAULT_VERBOSITY))
subst_verbose_0 = @echo " SUBST " $(@F);
do_subst = sed \
-e 's,[@]bindir[@],$(bindir),g' \
-e 's,[@]configdir[@],$(configdir),g' \
-e 's,[@]docdir[@],$(docdir),g' \
-e 's,[@]includedir[@],$(includedir),g' \
-e 's,[@]libdir[@],$(libdir),g' \
-e 's,[@]mandir[@],$(mandir),g' \
-e 's,[@]prefix[@],$(prefix),g' \
-e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \
-e 's,[@]sbindir[@],$(sbindir),g' \
-e 's,[@]scriptsdir[@],$(scriptsdir),g' \
-e 's,[@]sysconfdir[@],$(sysconfdir),g' \
-e 's,[@]localstatedir[@],$(localstatedir),g'
%: %.in
$(subst_verbose)$(do_subst) < $^ > $@ && chmod --reference $^ $@