File: Makefile.am

package info (click to toggle)
opensp 1.5.2-13
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch
  • size: 8,932 kB
  • ctags: 10,036
  • sloc: cpp: 65,784; ansic: 17,124; sh: 11,503; xml: 2,704; makefile: 926; perl: 561; yacc: 288; sed: 16
file content (58 lines) | stat: -rw-r--r-- 1,583 bytes parent folder | download | duplicates (6)
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
MAX_TEX_RECURSION=4
XMLTO=@XMLTO@
JADE=@JADE@
JADETEX=@JADETEX@
PDF2PS=@PDF2PS@
PDFJADETEX=@PDFJADETEX@
XMLDCL=$(top_srcdir)/pubtext/xml.dcl


docdir = $(datadir)/doc
pkgdocdir = $(docdir)/@PACKAGE@

man_MANS = onsgmls.1 osgmlnorm.1 ospent.1 ospam.1 osx.1 ospcat.1
BUILT_SOURCES = $(man_MANS)
pkgdoc_DATA = releasenotes.html @EXTRADOCS@

MAINTAINERCLEANFILES = Makefile.in

EXTRA_DIST = $(patsubst %.1, %.xml, $(man_MANS)) releasenotes.xml releasenotes.dsl logo.png

%.tex: $(srcdir)/%.xml $(srcdir)/%.dsl
	$(JADE) -o $@ -v -t tex -V tex-backend -V '(define %openjade-logo% "$(srcdir)/logo.png")' -d $(srcdir)/$*.dsl#print $(XMLDCL) $(srcdir)/$*.xml

%.pdf: %.tex
	$(PDFJADETEX) $<
	if ! cmp $(shell basename $< .tex).aux prior.aux 2>/dev/null && \
		expr $(MAKELEVEL) '<' $(MAX_TEX_RECURSION); then \
		cp -pf $(shell basename $< .tex).aux prior.aux ; \
		rm -f $@ ; \
		$(MAKE) $@ ; \
	fi
	rm -f prior.aux

%.dvi: %.tex
	$(JADETEX) $<
	if ! cmp $(shell basename $< .tex).aux prior.aux 2>/dev/null && \
		expr $(MAKELEVEL) '<' $(MAX_TEX_RECURSION); then \
		cp -pf $(shell basename $< .tex).aux prior.aux ; \
		rm -f $@ ; \
		$(MAKE) $@ ; \
	fi
	rm -f prior.aux

%.ps: %.pdf
	$(PDF2PS) $< $@

%.html: $(srcdir)/%.xml $(srcdir)/%.dsl
#	$(JADE) -v -t sgml -i html -V nochunks -V rootchunk -V "%root-filename%=$*" -V "%html-ext%=.html" -d $(srcdir)/$*.dsl#html $(XMLDCL) $(srcdir)/$*.xml
	$(XMLTO) html-nochunks $(srcdir)/$*.xml

%.1: $(srcdir)/%.xml
	$(XMLTO) man $<
   
mostlyclean-local:
	-rm -f *.out *.aux *.log *.dvi *.tex

clean-local: mostlyclean
	-rm -f *.1 *.html *.pdf *.ps