Fix whitespace throughout.
[fwd] / Makefile.am
index 40dd33d..e9d4aa4 100644 (file)
@@ -1,7 +1,5 @@
 ## -*-makefile-*-
 ##
-## $Id: Makefile.am,v 1.8 2004/04/08 01:36:25 mdw Exp $
-##
 ## Makefile for fw
 ##
 ## (c) 1999 Mark Wooding
 ## 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.
-## 
+##
 ## `fw' 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 `fw'; if not, write to the Free Software Foundation,
 ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ -31,12 +29,27 @@ 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 \
@@ -49,4 +62,7 @@ fw_SOURCES = \
        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 ---------------------------------------------------