$OpenBSD: patch-Makefile_in,v 1.2 2011/01/05 17:57:00 sebastia Exp $ Also install some demos and license files. --- Makefile.in.orig Fri Nov 19 22:19:54 2010 +++ Makefile.in Wed Dec 8 12:13:04 2010 @@ -77,6 +77,7 @@ datadir = @datadir@ datarootdir = @datarootdir@ mandir = @mandir@ includedir = @includedir@ +docdir = @docdir@ DESTDIR = @@ -192,7 +193,7 @@ doc-x: doc: @echo "No docs to build" -install: all install-binaries install-libraries install-doc +install: all install-binaries install-libraries install-doc install-demos install-binaries: binaries install-lib-binaries install-bin-binaries @mkdir -p $(DESTDIR)$(pkglibdir) @@ -221,13 +222,21 @@ install-doc-x: @echo "Installing documentation in $(DESTDIR)$(mandir)" @for i in $(srcdir)/doc/*.n; do \ echo "Installing $$i"; \ - rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \ $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \ done install-doc: install-doc-x - mkdir -p $(DESTDIR)$(pkglibdir)/htmldoc - cp $(srcdir)/doc/*.html $(DESTDIR)$(pkglibdir)/htmldoc + @echo "Installing documentation in $(DESTDIR)$(docdir)" + mkdir -p $(DESTDIR)$(docdir) + $(INSTALL_DATA) $(srcdir)/doc/*.html $(DESTDIR)$(docdir) + $(INSTALL_DATA) $(srcdir)/license.terms $(DESTDIR)$(docdir) + +install-demos: + mkdir -p $(DESTDIR)$(pkgdatadir) + $(INSTALL_DATA) $(srcdir)/demos/*.tcl $(DESTDIR)$(pkgdatadir) + chmod 555 $(DESTDIR)$(pkgdatadir)/demo.tcl + mkdir -p $(DESTDIR)$(pkgdatadir)/pics + $(INSTALL_DATA) $(srcdir)/demos/pics/* $(DESTDIR)$(pkgdatadir)/pics test: binaries libraries $(WISH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS) | cat