File: Makefile

package info (click to toggle)
gap 4r10p0-7
  • links: PTS
  • area: main
  • in suites: buster
  • size: 47,392 kB
  • sloc: ansic: 118,475; xml: 54,089; sh: 4,112; perl: 1,654; makefile: 274
file content (41 lines) | stat: -rw-r--r-- 1,164 bytes parent folder | download | duplicates (4)
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
pkgdocdir=/usr/share/doc/gap-doc
INSTALL_SCRIPT = install -o root -g root -m 0755
INSTALL_DATA = install -o root -g root -m 0644
INSTALL_DIR = install -o root -g root -m 0644 -d

all: gap-policy.html/index.html gap-policy.txt
gap-policy.html/index.html: gap-policy.sgml
	debiandoc2html $<

gap-policy-one-file.html: gap-policy.sgml
	debiandoc2html -1 -b gap-policy-1-file $<
	mv gap-policy-1-file.html/index.html gap-policy-one-file.html
	rmdir gap-policy-1-file.html

gap-policy-one-file: gap-policy-one-file.html

gap.1: gap2man
	sh gap2man > gap.1.new && mv gap.1.new gap.1

%.info: %.sgml
	debiandoc2info $<

%.txt: %.sgml
	debiandoc2text -O $< > $@

%.gz:   %
	gzip --best --no-name --force --stdout $< > $@

clean:
	rm -f gap-policy.txt.gz gap.1

maintainer-clean:
	rm -rf gap-policy.html gap-policy.txt

install: gap-policy.txt.gz gap-policy.html/index.html
	$(INSTALL_DIR)  $(DESTDIR)$(pkgdocdir)/gap-policy.html
	$(INSTALL_DATA) gap-policy.html/* $(DESTDIR)$(pkgdocdir)/gap-policy.html
	$(INSTALL_DATA) gap-policy.txt.gz $(DESTDIR)$(pkgdocdir)
	$(INSTALL_DATA) gap-policy.sgml $(DESTDIR)$(pkgdocdir)
	
.PHONY: install maintainer-clean gap-policy-one-file