summaryrefslogtreecommitdiff
path: root/sgmldocs.make
diff options
context:
space:
mode:
authorDan Mueth <d-mueth@uchicago.edu>2001-07-28 17:36:38 +0000
committerDan Mueth <dmueth@src.gnome.org>2001-07-28 17:36:38 +0000
commit8c52faea95e6e97b0f7c632022cf4b767e6c1d2a (patch)
tree195df2b8f7c9382ef8a95eb150f66dd9201a9598 /sgmldocs.make
parent696522ef0bc68aa9f162ed852bd43e896328efea (diff)
downloadgnome-desktop-8c52faea95e6e97b0f7c632022cf4b767e6c1d2a.tar.gz
Updating doc build stuff to use jw on RH 7.1 and any other dist which has
2001-07-28 Dan Mueth <d-mueth@uchicago.edu> Updating doc build stuff to use jw on RH 7.1 and any other dist which has moved to docbook-utils. * configure.in: * sgmldocs.make:
Diffstat (limited to 'sgmldocs.make')
-rw-r--r--sgmldocs.make21
1 files changed, 14 insertions, 7 deletions
diff --git a/sgmldocs.make b/sgmldocs.make
index 48b0ecd6..8159f7df 100644
--- a/sgmldocs.make
+++ b/sgmldocs.make
@@ -66,18 +66,25 @@ $(docname).sgml: $(sgml_ents)
# The weird srcdir trick is because the db2html from the Cygnus RPMs
# cannot handle relative filenames
$(docname)/index.html: $(srcdir)/$(docname).sgml
- -srcdir=`cd $(srcdir) && pwd`; \
- db2html $$srcdir/$(docname).sgml
+ -srcdir=`cd $(srcdir) && pwd`; \
+ if test "$(HAVE_JW)" = 'yes' ; then \
+ jw -c /etc/sgml/catalog $$srcdir/$(docname).sgml -o $$srcdir/$(docname); \
+ else \
+ db2html $$srcdir/$(docname).sgml; \
+ fi
app-dist-hook: index.html
-$(mkinstalldirs) $(distdir)/$(docname)/stylesheet-images
-$(mkinstalldirs) $(distdir)/figures
-cp $(srcdir)/$(docname)/*.html $(distdir)/$(docname)
- -cp $(srcdir)/$(docname)/*.css $(distdir)/$(docname)
- -cp $(srcdir)/$(docname)/stylesheet-images/*.gif \
- $(distdir)/$(docname)/stylesheet-images
- -cp $(srcdir)/figures/*.png \
- $(distdir)/figures
+ -for file in $(srcdir)/$(docname)/*.css; do \
+ basefile=`echo $$file | sed -e 's,^.*/,,'`; \
+ cp $$file $(distdir)/$(docname)/$$basefile ; \
+ done
+ -for file in $(srcdir)/$(docname)/stylesheet-images/*.gif; do \
+ basefile=`echo $$file | sed -e 's,^.*/,,'`; \
+ cp $$file $(distdir)/$(docname)/stylesheet-images/$$basefile ; \
+ done
-if [ -e topic.dat ]; then \
cp $(srcdir)/topic.dat $(distdir); \
fi