File: rules

package info (click to toggle)
wine-doc 0.9-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,132 kB
  • ctags: 279
  • sloc: perl: 6,948; sh: 270; makefile: 217; xml: 12
file content (87 lines) | stat: -rwxr-xr-x 2,129 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This is the debhelper compatability version to use.
export DH_COMPAT=2

DB2HTML = docbook2html
HTMLDIR = debian/wine-doc/usr/share/doc/wine-doc/html
HTMLDSL = debian/winehtml.dsl
HTMLCSS = debian/winedoc.css

configure: configure-stamp
configure-stamp:
	dh_testdir
	./configure

	touch configure-stamp

build-indep: configure-stamp build-indep-stamp
build-indep-stamp:
	dh_testdir

	# generate localized documents
	$(MAKE) -C fr wine-faq.sgml

	# generate HTML documentation
#	$(MAKE) html

	touch build-indep-stamp

build: build-indep

clean:
	dh_testdir
	dh_testroot
	rm -f build-indep-stamp configure-stamp

	-$(MAKE) distclean
	rm -f fr/wine-faq.posgml fr/wine-faq.sgml

	dh_clean

install-indep: build-indep
	dh_testdir
	dh_testroot
	dh_installdirs -i

	# generate HTML documentation with desired stylesheet
	$(DB2HTML) -d $(HTMLDSL) -o `pwd`/$(HTMLDIR)/wine-devel en/winedev-guide.sgml
	cp $(HTMLCSS) $(HTMLDIR)/wine-devel
	$(DB2HTML) -d $(HTMLDSL) -o `pwd`/$(HTMLDIR)/wine-user en/wineusr-guide.sgml
	cp $(HTMLCSS) $(HTMLDIR)/wine-user
	$(DB2HTML) -d $(HTMLDSL) -o `pwd`/$(HTMLDIR)/winelib-user en/winelib-guide.sgml
	cp $(HTMLCSS) $(HTMLDIR)/winelib-user
	$(DB2HTML) -d $(HTMLDSL) -o `pwd`/$(HTMLDIR)/wine-faq en/wine-faq.sgml
	$(DB2HTML) -d $(HTMLDSL) -o `pwd`/$(HTMLDIR)/wine-faq/fr fr/wine-faq.sgml
	mv $(HTMLDIR)/wine-faq/fr/index.htm $(HTMLDIR)/wine-faq/index.fr.htm
	rmdir $(HTMLDIR)/wine-faq/fr
	cp $(HTMLCSS) $(HTMLDIR)/wine-faq

install: install-indep

# Build architecture-independent files here.
binary-indep: build-indep install-indep
	dh_testdir
	dh_testroot

	cp en/*.sgml debian/*.dsl \
	 debian/wine-doc/usr/share/doc/wine-doc/sgml
#	cp documentation/*.html $(HTMLCSS) $(HTMLDIR)

	dh_installdocs -i
	dh_installchangelogs -i
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary: binary-indep
.PHONY: build-indep build clean binary-indep binary \
	install-indep install configure