manual/Makefile.am: Install the HTML version of the manual correctly.
[become] / manual / Makefile.am
index 81fc336..54c50a7 100644 (file)
@@ -1,7 +1,7 @@
 ## Process this file with `automake' to generate `Makefile.in'
 ## -*-makefile-*-
 ##
-## $Id: Makefile.am,v 1.8 1999/05/04 16:24:42 mdw Exp $
+## $Id: Makefile.am,v 1.10 2004/04/08 01:36:20 mdw Exp $
 ##
 ## Makefile for `become'
 ##
 ## 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.8  1999/05/04 16:24:42  mdw
-## Distribute the generated HTML files.
-##
-## Revision 1.7  1998/06/18  16:07:57  mdw
-## Fix installation of HTML files.
-##
-## Revision 1.6  1998/04/23 13:10:34  mdw
-## Add new file `texinice.tex' to the distribution.
-##
-## Revision 1.5  1998/01/20 14:48:18  mdw
-## Distribute gpl.texi.  Ooops.
-##
-## Revision 1.4  1998/01/12 16:45:35  mdw
-## Fix copyright date.
-##
-## Revision 1.3  1997/09/24  13:02:00  mdw
-## Distribute stamp-html.in so that the HTML files don't get recreated
-## unnecessarily.
-##
-## 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@
@@ -70,9 +41,9 @@ stamp-html.in: $(srcdir)/become.texi
        echo datestamp >$(srcdir)/stamp-html.in
 
 install-data-local: stamp-html.in
-       $(mkinstalldirs) $(htmldir)
-       for i in $(srcdir)/become_*.html; do \
-         $(INSTALL_DATA) $$i $(htmldir); \
+       $(mkinstalldirs) $(DESTDIR)$(htmldir)
+       for i in $(srcdir)/become/become_*.html; do \
+         $(INSTALL_DATA) $$i $(DESTDIR)$(htmldir); \
        done
 
 uninstall-local:
@@ -81,10 +52,11 @@ uninstall-local:
 dist-hook:
        distdir=`cd $(distdir) && pwd`; \
        cd $(srcdir); \
-       ln become_*.html $$distdir
+       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 ---------------------------------------------------