chiark / gitweb /
docs: Generate grammar and option summaries from manpage.
[fwd] / Makefile.am
CommitLineData
e82f7154 1## -*-makefile-*-
2##
7481fc9c 3## $Id: Makefile.am,v 1.8 2004/04/08 01:36:25 mdw Exp $
e82f7154 4##
5## Makefile for fw
6##
7## (c) 1999 Mark Wooding
8##
9
10##----- Licensing notice ----------------------------------------------------
11##
12## This file is part of the `fw' port forwarder.
13##
14## `fw' is free software; you can redistribute it and/or modify
15## it under the terms of the GNU General Public License as published by
16## the Free Software Foundation; either version 2 of the License, or
17## (at your option) any later version.
18##
19## `fw' is distributed in the hope that it will be useful,
20## but WITHOUT ANY WARRANTY; without even the implied warranty of
21## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22## GNU General Public License for more details.
23##
24## You should have received a copy of the GNU General Public License
25## along with `fw'; if not, write to the Free Software Foundation,
26## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
e82f7154 28AUTOMAKE_OPTIONS = foreign
29
e82f7154 30bin_PROGRAMS = fw
07f663a6 31man_MANS = fw.1
e82f7154 32
0ac54f22 33EXTRA_DIST = \
8cf7c7c2
MW
34 fw.1.in GRAMMAR \
35 make-manpage \
0ac54f22 36 debian/changelog debian/copyright debian/control debian/rules
07f663a6 37
8cf7c7c2
MW
38BUILT_SOURCES = mantext.c
39
40$(srcdir)/GRAMMAR: fw.1.in make-manpage
41 perl $(srcdir)/make-manpage text <$(srcdir)/fw.1.in >$@.new
42 mv $@.new $@
43
44fw.1: fw.1.in make-manpage
45 perl $(srcdir)/make-manpage man <$(srcdir)/fw.1.in >$@.new
46 mv $@.new $@
47
48mantext.c: fw.1.in make-manpage
49 perl $(srcdir)/make-manpage c <$(srcdir)/fw.1.in >$@.new
50 mv $@.new $@
51
e82f7154 52fw_SOURCES = \
8cf7c7c2
MW
53 chan.c conf.c endpt.c fw.c mantext.c reffd.c scan.c \
54 chan.h conf.h endpt.h fw.h mantext.h reffd.h scan.h \
4832f8be 55 \
56 source.c source.h target.h \
57 exec.c file.c socket.c \
58 exec.h file.h socket.h \
59 \
60 addr.h \
61 inet.c un.c \
62 inet.h un.h \
63 \
ee599f55 64 acl.c fattr.c identify.c privconn.c \
65 acl.h fattr.h identify.h privconn.h rlimits.h
e82f7154 66
8cf7c7c2
MW
67CLEANFILES = $(BUILT_SOURCES) fw.1
68MAINTAINERCLEANFILES = $(srcdir)/GRAMMAR
69
e82f7154 70##----- That's all, folks ---------------------------------------------------