# userv - Makefile.in
#
-# userv is
-# Copyright 1996-2017 Ian Jackson <ian@davenant.greenend.org.uk>.
-# Copyright 2000 Ben Harris <bjh21@cam.ac.uk>
-# Copyright 2016-2017 Peter Benie <pjb1008@cam.ac.uk>
+# userv is copyright Ian Jackson and other contributors.
+# See README for full authorship information.
#
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
docdir=$(share_prefix)/doc/userv
TARGETS= daemon client
-TARGETS_DOC_PS= spec.ps overview.ps
+TARGETS_DOC_PS= spec.pdf overview.pdf
TARGETS_DOC_RM= $(TARGETS_DOC_PS) spec.html
TARGETS_DOC= $(TARGETS_DOC_PS) spec.html/index.html
MAN1PAGES= userv.1
maintainer-clean: distclean
rm -rf $(GENSHIP_CLEAN) spec.html/*.html
-dist-prep: $(GENSHIP)
-
-pre-checkin:
- ./configure
- $(MAKE) dist-prep
-
-dist_tmp=dist_tmp/userv-$(VERSION)
-dist_prune=\( -name CVS -o -name 'dist_tmp*' -o -name slash-etc -o -name vd \)
-dist: dist-prep distclean
- rm -rf dist_tmp*
- mkdir dist_tmp $(dist_tmp)
- find $(dist_prune) -prune -o -type d -print | \
- sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh
- find $(dist_prune) -prune -o -type f -print | \
- sed -e 's#.*#ln & $(dist_tmp)/&#' | sh
- cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)`
- gzip -9 $(dist_tmp).tar
- mv $(dist_tmp).tar.gz .
-
linecount: $(SOURCES)
wc -l $^
+%.dbk: %.sgml
+ debiandoc2dbk -1 $<
+
%.html/index.html: %.sgml
debiandoc2html $<
-%.ps: %.sgml
- debiandoc2ps -1 -O $< >$@.new && mv $@.new $@
+%.pdf: %.dbk
+ dblatex -b xetex $<
+ mv -f $<.pdf $@
-%.ps: %.fig
- fig2dev -L ps -c -l dummy -P -z A4 $< >$@.new && mv $@.new $@
+overview.pdf: overview.fig
+ SOURCE_DATE_EPOCH=$$(stat -c %Y overview.fig) \
+ fig2dev -L pdf -c -F -l dummy_arg -z A4 $< >$@.new
+ mv $@.new $@
%.l: %.l.m4
$(M4) $(M4FLAGS) -- $< >$@.new && mv $@.new $@