## -*-makefile-*-
##
-## $Id: Makefile.am,v 1.7 2003/11/29 20:36:07 mdw Exp $
-##
## Makefile for fw
##
## (c) 1999 Mark Wooding
## along with `fw'; if not, write to the Free Software Foundation,
## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##----- Revision history ----------------------------------------------------
-##
-## $Log: Makefile.am,v $
-## Revision 1.7 2003/11/29 20:36:07 mdw
-## Privileged outgoing connections.
-##
-## Revision 1.6 2003/11/25 14:08:23 mdw
-## Debianization. Socket target options. Internet binding.
-##
-## Revision 1.5 1999/11/11 19:08:27 mdw
-## Build separately from mLib.
-##
-## Revision 1.4 1999/10/10 16:47:16 mdw
-## Moved some files to mLib.
-##
-## Revision 1.3 1999/07/26 23:30:06 mdw
-## Lots of changes to source files for new design.
-##
-## Revision 1.2 1999/07/03 13:53:27 mdw
-## Install and distribute new manual page.
-##
-## Revision 1.1.1.1 1999/07/01 08:56:23 mdw
-## Initial revision.
-##
-
AUTOMAKE_OPTIONS = foreign
bin_PROGRAMS = fw
man_MANS = fw.1
EXTRA_DIST = \
- $(man_MANS) \
+ fw.1.in GRAMMAR \
+ make-manpage \
debian/changelog debian/copyright debian/control debian/rules
+BUILT_SOURCES = mantext.c
+
+$(srcdir)/GRAMMAR: fw.1.in make-manpage
+ perl $(srcdir)/make-manpage text <$(srcdir)/fw.1.in >$@.new
+ mv $@.new $@
+
+fw.1: fw.1.in make-manpage
+ perl $(srcdir)/make-manpage man <$(srcdir)/fw.1.in >$@.new
+ mv $@.new $@
+
+mantext.c: fw.1.in make-manpage
+ perl $(srcdir)/make-manpage c <$(srcdir)/fw.1.in >$@.new
+ mv $@.new $@
+
fw_SOURCES = \
- chan.c conf.c endpt.c fw.c reffd.c scan.c \
- chan.h conf.h endpt.h fw.h reffd.h scan.h \
+ chan.c conf.c endpt.c fw.c mantext.c reffd.c scan.c \
+ chan.h conf.h endpt.h fw.h mantext.h reffd.h scan.h \
\
source.c source.h target.h \
exec.c file.c socket.c \
acl.c fattr.c identify.c privconn.c \
acl.h fattr.h identify.h privconn.h rlimits.h
+CLEANFILES = $(BUILT_SOURCES) fw.1
+MAINTAINERCLEANFILES = $(srcdir)/GRAMMAR
+
##----- That's all, folks ---------------------------------------------------