Makefile.am: Tweak `silent-rules' machinery.
[yaid] / Makefile.am
CommitLineData
9dcdc856
MW
1### -*-makefile-*-
2###
3### Build script for YAID
4###
5### (c) 2012 Straylight/Edgeware
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This file is part of Yet Another Ident Daemon (YAID).
11###
12### YAID 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### YAID 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 YAID; if not, write to the Free Software Foundation,
24### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26EXTRA_DIST =
27
28CLEANFILES =
29DISTCLEANFILES =
30MAINTAINERCLEANFILES =
31
32sbin_PROGRAMS =
33man_MANS =
34
35###--------------------------------------------------------------------------
d484f44e
MW
36### Substitutions.
37
38confsubst = $(top_srcdir)/config/confsubst
39EXTRA_DIST += config/confsubst
40
41SUBSTITUTIONS = \
42 prefix=$(prefix) exec_prefix=$(exec_prefix) \
43 sysconfdir=$(sysconfdir)
44
5436f0c5
MW
45V_SUBST = $(V_SUBST_@AM_V@)
46V_SUBST_ = $(V_SUBST_@AM_DEFAULT_V@)
47V_SUBST_0 = @echo " SUBST $@";
d484f44e
MW
48SUBST = $(V_SUBST)$(confsubst)
49
50###--------------------------------------------------------------------------
9dcdc856
MW
51### The main server.
52
53sbin_PROGRAMS += yaid
54yaid_SOURCES =
38b211f2 55EXTRA_yaid_SOURCES =
9dcdc856
MW
56yaid_LDADD = $(mLib_LIBS)
57
ace9eb22
MW
58man_MANS += yaid.8
59EXTRA_DIST += yaid.8.in
60CLEANFILES += yaid.8
61yaid.8: yaid.8.in Makefile
62 $(SUBST) $(srcdir)/yaid.8.in >yaid.8 $(SUBSTITUTIONS)
63
c3794524 64yaid_SOURCES += yaid.h
9da480be 65yaid_SOURCES += yaid.c
bf4d9761 66yaid_SOURCES += addr.c
9da480be 67yaid_SOURCES += policy.c
9dcdc856 68
38b211f2
MW
69yaid_LDADD += $(SYS).$(OBJEXT)
70EXTRA_yaid_SOURCES += linux.c
71
9dcdc856
MW
72###--------------------------------------------------------------------------
73### Release machinery.
74
75dist-hook::
76 echo $(VERSION) >$(distdir)/RELEASE
77
78EXTRA_DIST += config/auto-version
79
80###--------------------------------------------------------------------------
81### Debian.
82
83## General stuff.
fd86cd2a 84EXTRA_DIST += debian/control debian/copyright debian/changelog
4234b089 85EXTRA_DIST += debian/rules debian/compat debian/source/format
fd86cd2a
MW
86EXTRA_DIST += debian/yaid.install debian/yaid.init
87EXTRA_DIST += debian/yaid.policy
9dcdc856
MW
88
89###----- That's all, folks --------------------------------------------------