manual/Makefile.am: Install the HTML version of the manual correctly.
[become] / manual / Makefile.am
index fef91ff..54c50a7 100644 (file)
@@ -1,11 +1,11 @@
 ## Process this file with `automake' to generate `Makefile.in'
 ## -*-makefile-*-
 ##
-## $Id: Makefile.am,v 1.2 1997/09/18 11:15:41 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.2  1997/09/18 11:15:41  mdw
-## Build HTML documentation and install it.
-##
-## Revision 1.1  1997/08/07 09:35:34  mdw
-## Added trivial Makefiles.  Better write some documentation.
-##
-
 ##----- Distribute the right things -----------------------------------------
 
 htmldir = @htmldir@
 
-EXTRA_DIST = texinfo.tex
+EXTRA_DIST = gpl.texi texinfo.tex texinice.tex stamp-html.in
 info_TEXINFOS = become.texi
 noinst_DATA = become_*.html
 
@@ -51,16 +41,22 @@ stamp-html.in: $(srcdir)/become.texi
        echo datestamp >$(srcdir)/stamp-html.in
 
 install-data-local: stamp-html.in
-       $(mkinstalldirs) $(htmldir)
-       cd $(srcdir); for i in become_*.html; do \
-         $(INSTALL_DATA) $$i $(htmldir)/$$i; \
+       $(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_*.html \
+       $(srcdir)/stamp-html.in $(srcdir)/become/become_*.html \
        $(srcdir)/become.info*
 
 ##----- That's all, folks ---------------------------------------------------