chiark / gitweb /
manual/Makefile.am: Install the HTML version of the manual correctly.
[become] / manual / Makefile.am
index 1248be463803bbe947aa8735ac37ec3207761c76..54c50a740595246c281b484b4462907934e0b5ae 100644 (file)
@@ -1,11 +1,11 @@
 ## Process this file with `automake' to generate `Makefile.in'
 ## -*-makefile-*-
 ##
-## $Id: Makefile.am,v 1.1 1997/08/07 09:35:34 mdw Exp $
+## $Id: Makefile.am,v 1.10 2004/04/08 01:36:20 mdw Exp $
 ##
 ## Makefile for `become'
 ##
-## (c) 1997 EBI
+## (c) 1998 EBI
 ##
 
 ##----- Licensing notice ----------------------------------------------------
 ## along with `become'; 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.1  1997/08/07 09:35:34  mdw
-## Added trivial Makefiles.  Better write some documentation.
-##
-
 ##----- Distribute the right things -----------------------------------------
 
-EXTRA_DIST = become.tex syntax.sty
+htmldir = @htmldir@
+
+EXTRA_DIST = gpl.texi texinfo.tex texinice.tex stamp-html.in
+info_TEXINFOS = become.texi
+noinst_DATA = become_*.html
+
+become_*.html: stamp-html.in
+
+stamp-html.in: $(srcdir)/become.texi
+       cd $(srcdir); texi2html -menu -split_node become.texi
+       echo datestamp >$(srcdir)/stamp-html.in
+
+install-data-local: stamp-html.in
+       $(mkinstalldirs) $(DESTDIR)$(htmldir)
+       for i in $(srcdir)/become/become_*.html; do \
+         $(INSTALL_DATA) $$i $(DESTDIR)$(htmldir); \
+       done
+
+uninstall-local:
+       rm -f $(htmldir)/become_*.html
+
+dist-hook:
+       distdir=`cd $(distdir) && pwd`; \
+       cd $(srcdir); \
+       mkdir $$distdir/become; \
+       ln become/become_*.html $$distdir/become
+
+MAINTAINERCLEANFILES = \
+       $(srcdir)/stamp-html.in $(srcdir)/become/become_*.html \
+       $(srcdir)/become.info*
 
 ##----- That's all, folks ---------------------------------------------------