diff options
author | Kevin Dalley <kevind@rahul.net> | 2002-03-15 14:20:02 +0000 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2014-10-03 14:05:02 +0000 |
commit | ac8459519a9ef2a1ee635509b52a653da1bfe9d5 (patch) | |
tree | 9ed2df2144d6ad3bb7cf1d43243d815a8eb90059 /doc/Makefile.in | |
parent | 8b372c9248930ae29763202121434d3d676d0f30 (diff) | |
parent | e7e90b72fd3161c5d55fed49e100781dfa3e9408 (diff) |
Imported Debian patch 0.84-2debian/0.84-2
Diffstat (limited to 'doc/Makefile.in')
-rw-r--r-- | doc/Makefile.in | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/doc/Makefile.in b/doc/Makefile.in index 0099667..6913cd2 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -21,6 +21,7 @@ includedir = @includedir@ oldincludedir = /usr/include configdir = ${sysconfdir}/sane.d sanedatadir = ${datadir}/sane +xsanedocdir = ${datadir}/sane/xsane/doc MKDIR = $(top_srcdir)/mkinstalldirs INSTALL = @INSTALL@ @@ -41,6 +42,7 @@ all: $(MANPAGES) %.1: %.man sed -e 's|@DATADIR@|$(datadir)|g' \ + -e 's|@SANEDATADIR@|$(sanedatadir)|g' \ -e 's|@CONFIGDIR@|$(configdir)|g' \ -e 's|@LIBDIR@|$(libdir)|g' \ -e 's|@BINDIR@|$(bindir)|g' \ @@ -53,8 +55,33 @@ install: $(MANPAGES) $(INSTALL_DATA) $${page} $(mandir)/man1/$${page} || exit 1; \ done $(MKDIR) $(datadir) - $(INSTALL_DATA) $(srcdir)/sane-*-doc.html $(sanedatadir)/ - $(INSTALL_DATA) $(srcdir)/*.jpg $(sanedatadir)/ + + $(MKDIR) $(xsanedocdir) + @for page in *.html; do\ + echo installing $${page} in $(xsanedocdir)/$${page}...; \ + $(INSTALL_DATA) $${page} $(xsanedocdir)/$${page} || exit 1; \ + done + + @for image in *.jpg; do\ + echo installing $${image} in $(xsanedocdir)/$${image}...; \ + $(INSTALL_DATA) $${image} $(xsanedocdir)/$${image} || exit 1; \ + done + +uninstall: + @for page in $(SECT1); do \ + echo uninstalling $(mandir)/man1/$${page}...; \ + rm -f $(mandir)/man1/$${page} || exit 1; \ + done + + @for page in *.html; do\ + echo uninstalling $(xsanedocdir)/$${page}...; \ + rm -f $(xsanedocdir)/$${page} || exit 1; \ + done + + @for image in *.jpg; do\ + echo uninstalling $${image} in $(xsanedocdir)/$${image}...; \ + rm -f $(xsanedocdir)/$${image} || exit 1; \ + done docs: ps html |