1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
SGML_FILES = \
balsa.sgml
EXTRA_DIST = \
topic.dat \
$(SGML_FILES)
balsa_helpdir = $(gnomedatadir)/gnome/help/balsa/C
balsa_help_DATA = \
topic.dat \
index.html
GDP_STYLESHEET = \
stylesheet/dsssl/docbook-gnome/gdp-both.dsl
MANUAL_IMAGES := $(wildcard images/*.png)
# A pattern rule for the eps files
%.eps : %.png
img2eps $<
# Only build html by default
all: index.html
index.html: $(SGML_FILES)
if test "$(HAVE_JW)" = 'yes' ; then \
jw -c /etc/sgml/catalog balsa.sgml -o balsa; \
else \
db2html balsa.sgml; \
fi
-cp balsa/index.html index.html || touch index.html
epsimages: $(MANUAL_IMAGES)
balsa.pdf: $(SGML_FILES)
-for file in $(srcdir)/images/*.png; do img2eps $$file; done
-db2pdf -d $(GDP_STYLESHEET) $<
balsa.rtf: $(SGML_FILES)
-db2rtf -d $(GDP_STYLESHEET) $<
# Dist / install hook thingies
dist-hook:
-cp README $(distdir)
-cp index.html $(distdir)
mkdir $(distdir)/balsa
-cp balsa/*.html $(distdir)/balsa
mkdir $(distdir)/images
-cp $(srcdir)/images/*.png $(distdir)/images
mkdir $(distdir)/stylesheet-images
-cp $(srcdir)/stylesheet-images/*.gif $(distdir)/stylesheet-images
install-data-local: index.html
$(mkinstalldirs) $(DESTDIR)$(balsa_helpdir)/images
$(mkinstalldirs) $(DESTDIR)$(balsa_helpdir)/stylesheet-images
-for file in balsa/*.html; do \
basefile=`basename $$file`; \
$(INSTALL_DATA) $$file $(DESTDIR)$(balsa_helpdir)/$$basefile; \
done
-for file in $(srcdir)/images/*.png ; do \
basefile=`basename $$file`; \
$(INSTALL_DATA) $$file $(DESTDIR)$(balsa_helpdir)/images/$$basefile;\
done
-for file in $(srcdir)/stylesheet-images/*.gif ; do \
basefile=`basename $$file`; \
$(INSTALL_DATA) $$file $(DESTDIR)$(balsa_helpdir)/stylesheet-images/$$basefile;\
done
clean-hook:
-cd images && rm *.eps
|