linux.c: Reformat to suppress a compiler warning.
[yaid] / Makefile.am
index d716b07..fb4ea27 100644 (file)
@@ -33,13 +33,41 @@ sbin_PROGRAMS                =
 man_MANS                =
 
 ###--------------------------------------------------------------------------
+### Substitutions.
+
+confsubst               = $(top_srcdir)/config/confsubst
+EXTRA_DIST             += config/confsubst
+
+SUBSTITUTIONS = \
+               prefix=$(prefix) exec_prefix=$(exec_prefix) \
+               sysconfdir=$(sysconfdir)
+
+V_SUBST = $(V_SUBST_$(V))
+V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
+V_SUBST_0 = @echo "  SUBST  $@";
+SUBST = $(V_SUBST)$(confsubst)
+
+###--------------------------------------------------------------------------
 ### The main server.
 
 sbin_PROGRAMS          += yaid
 yaid_SOURCES            =
+EXTRA_yaid_SOURCES      =
 yaid_LDADD              = $(mLib_LIBS)
 
-yaid_SOURCES           += ident.c
+man_MANS               += yaid.8
+EXTRA_DIST             += yaid.8.in
+CLEANFILES             += yaid.8
+yaid.8: yaid.8.in Makefile
+       $(SUBST) $(srcdir)/yaid.8.in >yaid.8 $(SUBSTITUTIONS)
+
+yaid_SOURCES           += yaid.h
+yaid_SOURCES           += yaid.c
+yaid_SOURCES           += addr.c
+yaid_SOURCES           += policy.c
+
+yaid_LDADD             += $(SYS).$(OBJEXT)
+EXTRA_yaid_SOURCES     += linux.c
 
 ###--------------------------------------------------------------------------
 ### Release machinery.
@@ -53,9 +81,9 @@ EXTRA_DIST            += config/auto-version
 ### Debian.
 
 ## General stuff.
-##EXTRA_DIST           += debian/rules
-##EXTRA_DIST           += debian/control
-##EXTRA_DIST           += debian/changelog
-##EXTRA_DIST           += debian/copyright
+EXTRA_DIST             += debian/control debian/copyright debian/changelog
+EXTRA_DIST             += debian/rules debian/compat debian/source/format
+EXTRA_DIST             += debian/yaid.install debian/yaid.init
+EXTRA_DIST             += debian/yaid.policy
 
 ###----- That's all, folks --------------------------------------------------