summaryrefslogtreecommitdiff
path: root/doc/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile.in')
-rw-r--r--doc/Makefile.in31
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