chiark / gitweb /
Overhaul manual pages.
[tripe] / server / Makefile.am
index 01438ea8498fdbd41fc5cb4aa79a6325cdb99234..fe904419cc440417e2e7953f530337ff3e74ff15 100644 (file)
@@ -1,42 +1,74 @@
-## -*-makefile-*-
-##
-## $Id$
-##
-## Makefile for TrIPE server
-##
-## (c) 2001 Straylight/Edgeware
-##
-
-##----- Licensing notice ----------------------------------------------------
-##
-## This file is part of Trivial IP Encryption (TrIPE).
-##
-## TrIPE 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.
-## 
-## TrIPE is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-## GNU General Public License for more details.
-## 
-## You should have received a copy of the GNU General Public License
-## along with TrIPE; if not, write to the Free Software Foundation,
-## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-AUTOMAKE_OPTIONS = foreign
-INCLUDES = -I$(top_srcdir)/common -I$(top_builddir)/common
-LDADD = ../common/libtripe.a @CATACOMB_LIBS@
-configdir = @configdir@
-tun = @tun@
-
-sbin_PROGRAMS = tripe
-
-tripe_SOURCES = \
-       tripe.h \
-       servutil.c \
-       tripe.c admin.c peer.c keymgmt.c keyexch.c keyset.c chal.c \
-       tun-unet.c tun-bsd.c tun-linux.c tun-slip.c
-
-##----- That's all, folks ---------------------------------------------------
+### -*-makefile-*-
+###
+### Makefile for TrIPE server
+###
+### (c) 2001 Straylight/Edgeware
+###
+
+###----- Licensing notice ---------------------------------------------------
+###
+### This file is part of Trivial IP Encryption (TrIPE).
+###
+### TrIPE 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.
+###
+### TrIPE is distributed in the hope that it will be useful,
+### but WITHOUT ANY WARRANTY; without even the implied warranty of
+### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+### GNU General Public License for more details.
+###
+### You should have received a copy of the GNU General Public License
+### along with TrIPE; if not, write to the Free Software Foundation,
+### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+include $(top_srcdir)/vars.am
+
+sbin_PROGRAMS           =
+man_MANS                =
+
+###--------------------------------------------------------------------------
+### The main server.
+
+sbin_PROGRAMS          += tripe
+
+tripe_SOURCES           =
+tripe_LDADD             = $(libtripe) $(catacomb_LIBS)
+
+## Main header file.
+tripe_SOURCES          += tripe.h
+
+## Main sources.
+tripe_SOURCES          += servutil.c
+tripe_SOURCES          += keymgmt.c
+tripe_SOURCES          += keyset.c
+tripe_SOURCES          += keyexch.c
+tripe_SOURCES          += chal.c
+tripe_SOURCES          += peer.c
+tripe_SOURCES          += admin.c
+tripe_SOURCES          += tripe.c
+
+## Tunnel drivers.
+tripe_SOURCES          += tun-unet.c
+tripe_SOURCES          += tun-bsd.c
+tripe_SOURCES          += tun-linux.c
+tripe_SOURCES          += tun-slip.c
+
+## Server manual page.
+man_MANS               += tripe.8
+CLEANFILES             += tripe.8
+EXTRA_DIST             += tripe.8.in
+
+## The admin protocol manual page.
+man_MANS               += tripe-admin.5
+CLEANFILES             += tripe-admin.5
+EXTRA_DIST             += tripe-admin.5.in make-summary
+
+tripe-admin.5: tripe-admin.5.in make-summary $(mandefs)
+       awk -f $(srcdir)/make-summary <$(srcdir)/tripe-admin.5.in >$@.tmp
+       $(mansubst) $@.tmp >$@.new
+       rm -f $@.tmp
+       mv $@.new $@
+
+###----- That's all, folks --------------------------------------------------