# autoconf settings SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ ac_aux_dir = @ac_aux_dir@ DESTDIR = INSTALL = @INSTALL@ mkinstalldirs = $(SHELL) $(top_srcdir)/$(ac_aux_dir)/mkinstalldirs DOC=user-manual MAIN=$(DOC).sgml FIGS=configlayout.fig JPEGS=$(FIGS:.fig=.jpg) EPSS=$(FIGS:.fig=.eps) GENERATED_IMG=$(JPEGS) $(EPSS) SRC=$(MAIN) $(MAIN).sed $(GENERATED_IMG) all: $(DOC).pdf $(DOC).ps $(DOC)-html.tar.gz $(DOC).pdf: $(SRC) db2pdf $(MAIN) >/dev/null $(DOC).ps: $(SRC) db2ps $(MAIN) >/dev/null $(DOC): $(SRC) -$(RM) -r $(DOC) db2html $(MAIN) >/dev/null (cd $@; for file in *.html; do \ mv $$file $$file.tmp;\ sed -e 's/—/--/g' $$file.tmp > $$file;\ rm $$file.tmp;\ done) cp $(JPEGS) $@ # Since this file would be parsed for SGML markup, we have to # make a safe version (with &, < and > converted to SGML entities) # In addition, tabs get ignored for some reason, so for the # Makefile we have to convert them to spaces. # Also, there seems to be a bug that causes -- to come out as - # even inside elements, so we work around that. %.sed: % fold -w 72 $< | \ sed -e "s/$$(echo x | tr x \\t)/ /g" \ -e "s/&/\\&/g" \ -e "s//\\>/g" \ -e "s/--/\\—/g" > $@ clean: -$(RM) *.log *.dvi *.aux *.out *.tex *.sed *.ps *.pdf builddate -$(RM) -r $(DOC) -$(RM) $(GENERATED_IMG) $(DOC)-html.tar.gz distclean: clean -$(RM) *~ $(DOC).tar.gz Makefile maintainer-clean: distclean install: all $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/wsmake $(INSTALL) $(DOC).sgml $(DESTDIR)$(datadir)/doc/wsmake $(INSTALL) $(DOC).pdf $(DESTDIR)$(datadir)/doc/wsmake $(INSTALL) $(DOC).ps $(DESTDIR)$(datadir)/doc/wsmake $(INSTALL) $(DOC)-html.tar.gz $(DESTDIR)$(datadir)/doc/wsmake uninstall: rm -rf $(DESTDIR)$(datadir)/doc/wsmake DISTFILES = Makefile.in configlayout.fig user-manual.sgml top_distdir = .. distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) @for file in $(DISTFILES); do \ if test -f $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ $(mkinstalldirs) "$(distdir)/$$dir"; \ fi; \ if test -d $$d/$$file; then \ cp -pR $$d/$$file $(distdir) \ || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done $(DOC)-html.tar.gz: $(DOC) tar zcf $(DOC)-html.tar.gz $(DOC) $(DOC).tar.gz: distclean (cd ..; tar zcf /tmp/$(DOC).tar.gz $(DOC)) mv /tmp/$(DOC).tar.gz . # Make encapsulated PostScript from xfig %.eps: %.fig fig2dev -Leps $< $@ # Make jpeg from xfig %.jpg: %.fig fig2dev -Ljpeg -m 0.9 -q 100 $< $@ .PHONY: distclean clean all builddate maintainer-clean distdir $(DOC)-html.tar.gz: $(DOC) $(DOC).pdf: $(SRC) $(DOC).ps: $(SRC)