File: Makefile.in

package info (click to toggle)
hugs98 98.200311-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 12,964 kB
  • ctags: 8,084
  • sloc: ansic: 67,521; haskell: 61,497; xml: 4,566; sh: 3,264; cpp: 1,936; yacc: 1,094; makefile: 915; cs: 883; sed: 10
file content (48 lines) | stat: -rw-r--r-- 1,275 bytes parent folder | download
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
DOCBOOK2HTML = @DOCBOOK2HTML@
DOCBOOK2DVI  = @DOCBOOK2DVI@
DOCBOOK2PDF  = @DOCBOOK2PDF@
DOCBOOK2PS   = @DOCBOOK2PS@

ROOT	     = users_guide
PARTS	     = $(ROOT).sgml haskell98.sgml hugs_ghc.sgml hugs_only.sgml \
	       introduction.sgml license.sgml miscellaneous.sgml \
	       options.sgml using_hugs.sgml
# Options needed for non-SuSE $(DOCBOOK2HTML)
HTML_OPTS    = --output $(ROOT) -V '%use-id-as-filename%'

# Don't use $(ROOT)/index.html, because depending on $(DOCBOOK2HTML) it
# could be $(ROOT)/$(ROOT).html instead.
HTML         = $(ROOT)/license.html

%.sgml: %.xml
	sed -f xml2sgml.sed $*.xml >$@

all: html dvi ps pdf

html: $(HTML)

dvi: $(ROOT).dvi

ps: $(ROOT).ps

pdf: $(ROOT).pdf

# MEGA-HACK: There is no standard for the options of db2foo, so try to
# be clever...   :-P
$(HTML): $(PARTS)
	rm -rf $(ROOT)
	test -z '$(DOCBOOK2HTML)' || \
	  if $(DOCBOOK2HTML) --help | grep -e --output > /dev/null 2>&1 ; then \
	    $(DOCBOOK2HTML) $(HTML_OPTS) $(ROOT).sgml ; \
	  else \
	    $(DOCBOOK2HTML) $(ROOT).sgml ; \
	  fi

$(ROOT).dvi: $(PARTS)
	test -z '$(DOCBOOK2DVI)' || $(DOCBOOK2DVI) $(ROOT).sgml

$(ROOT).ps: $(PARTS)
	test -z '$(DOCBOOK2PS)' || $(DOCBOOK2PS) $(ROOT).sgml

$(ROOT).pdf: $(PARTS)
	test -z '$(DOCBOOK2PDF)' || $(DOCBOOK2PDF) $(ROOT).sgml