chiark / gitweb /
Build: Fix construction of manual pages.
[tripe] / mon / Makefile.am
index ff48384b162cd7705d39f49dd861f3ef142514f5..d3053b1bf77d553a28d4fef364852f15123c436b 100644 (file)
@@ -1,33 +1,48 @@
-## -*-makefile-*-
-##
-## Makefile for TrIPE graphical monitor
-##
-## (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
-
-PYGTKSCRIPTS = tripemon
-bin_SCRIPTS = @pygtkscripts@
-
-EXTRA_SCRIPTS = ${PYGTKSCRIPTS}
-
-##----- That's all, folks ---------------------------------------------------
+### -*-makefile-*-
+###
+### Makefile for TrIPE graphical monitor
+###
+### (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
+
+bin_SCRIPTS             =
+man_MANS                =
+
+###--------------------------------------------------------------------------
+### Graphical monitor.
+
+## Monitor script.
+bin_SCRIPTS            += tripemon
+EXTRA_DIST             += tripemon.in
+CLEANFILES             += tripemon
+
+tripemon: tripemon.in Makefile
+       $(confsubst) $(srcdir)/tripemon.in >$@.new $(SUBSTITUTIONS) && \
+               chmod +x $@.new && mv $@.new $@
+
+## Manual page.
+man_MANS               += tripemon.1
+CLEANFILES             += tripemon.1
+EXTRA_DIST             += tripemon.1.in
+
+###----- That's all, folks --------------------------------------------------