chiark / gitweb /
More minor cleanups.
[tripe] / vars.am
CommitLineData
6b6ad670
MW
1### -*-makefile-*-
2###
3### Definitions used throughout the build system
4###
5### (c) 2008 Straylight/Edgeware
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This file is part of Trivial IP Encryption (TrIPE).
11###
12### TrIPE is free software; you can redistribute it and/or modify
13### it under the terms of the GNU General Public License as published by
14### the Free Software Foundation; either version 2 of the License, or
15### (at your option) any later version.
16###
17### TrIPE is distributed in the hope that it will be useful,
18### but WITHOUT ANY WARRANTY; without even the implied warranty of
19### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20### GNU General Public License for more details.
21###
22### You should have received a copy of the GNU General Public License
23### along with TrIPE; if not, write to the Free Software Foundation,
24### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26###--------------------------------------------------------------------------
27### Initial values of common variables.
28
29EXTRA_DIST =
30
31CLEANFILES =
32DISTCLEANFILES =
33MAINTAINERCLEANFILES =
34
35SUFFIXES =
36
37###--------------------------------------------------------------------------
38### Include path.
39
40TRIPE_INCLUDES = \
41 -I$(top_builddir)/config.h \
388e0319
MW
42 -I$(top_srcdir)/common \
43 -I$(top_srcdir)/priv
6b6ad670
MW
44
45CPPFLAGS += $(TRIPE_INCLUDES)
46
47###--------------------------------------------------------------------------
48### Miscellanous useful definitions.
49
388e0319 50## Libraries of common code.
6b6ad670 51libtripe = $(top_builddir)/common/libtripe.a
388e0319 52libpriv = $(top_builddir)/priv/libpriv.a
6b6ad670 53
6b6ad670
MW
54## Substitute tags in files.
55confsubst = $(top_srcdir)/config/confsubst
56
57###--------------------------------------------------------------------------
58### Standard configuration substitutions.
59
60SUBSTITUTIONS = \
61 prefix=$(prefix) exec_prefix=$(exec_prefix) \
62 libdir=$(libdir) includedir=$(includedir) \
63 bindir=$(bindir) sbindir=$(sbindir) \
64 configdir=$(configdir) socketdir=$(socketdir) \
65 initconfig=$(initconfig) \
66 pidfile=$(pidfile) logfile=$(logfile) \
ccbfa044 67 PACKAGE=$(PACKAGE) VERSION=$(VERSION) \
6b6ad670
MW
68 PYTHON=$(PYTHON)
69
fc916a09
MW
70###--------------------------------------------------------------------------
71### Manpage substitutions.
72
73SUFFIXES += .1 .1.in
74SUFFIXES += .5 .5.in
75SUFFIXES += .7 .7.in
76SUFFIXES += .8 .8.in
77
e99aedcf
MW
78mandefs = $(top_srcdir)/common/defs.man
79makesummary = $(top_srcdir)/common/make-summary
80
81.1.in.1 .5.in.5 .7.in.7 .8.in.8:
82 sed '/^\.$$/ d; /^\.\\"/ d' $(mandefs) >$@.defs
83 sed -e '/@@@PRE@@@/ {' -e 'r$@.defs' -e 'd' -e '}' $< >$@.merge
84 $(confsubst) $@.merge >$@.subst $(SUBSTITUTIONS)
85 awk -f $(makesummary) $@.subst >$@.new
86 rm -f $@.defs $@.merge $@.subst && mv $@.new $@
fc916a09 87
6b6ad670 88###----- That's all, folks --------------------------------------------------