File: Makefile

package info (click to toggle)
osra 2.1.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,468 kB
  • sloc: cpp: 52,893; sh: 3,085; perl: 390; makefile: 328; python: 279; xml: 169; java: 160
file content (57 lines) | stat: -rw-r--r-- 1,463 bytes parent folder | download | duplicates (2)
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
#
# This makefile targets the compilation and installation of poject documentation.
#
# We provide compiled documentation on purpose, to reduce the number of dependencies (see linux/debian/control).
#

include ../Makefile.inc

HTML_DOC_DIR=html
NATURALDOCS_DIR=nd

all:

ifdef NATURALDOCS
all: $(HTML_DOC_DIR)/index.html

$(HTML_DOC_DIR)/index.html:
	mkdir -p $(HTML_DOC_DIR) $(NATURALDOCS_DIR)
	$(NATURALDOCS) -i ../src -o HTML $(HTML_DOC_DIR) -p $(NATURALDOCS_DIR)
endif

ifdef XSLTPROC
all: $(NAME).1 $(NAME).html

$(NAME).1: manual.sgml
#	This command has been taken from http://www.debian.org/doc/manuals/maint-guide/ch-dother.en.html#s-manpagexml:
	$(XSLTPROC) --nonet \
		--param make.year.ranges 1 \
		--param make.single.year.ranges 1 \
		--param man.charmap.use.subset 0 \
		http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
		$?

$(NAME).html: manual.sgml
	$(XSLTPROC) --nonet \
		--param make.year.ranges 1 \
		--param make.single.year.ranges 1 \
		--param man.charmap.use.subset 0 \
		http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl \
		$? > $@

install: $(NAME).1
	$(INSTALL_DIR) $(DESTDIR)$(mandir)/man1
	$(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man1
endif

uninstall:
	$(RM) -f $(DESTDIR)$(mandir)/man1/$(NAME).1

clean:
	$(RM) -Rf $(HTML_DOC_DIR) $(NAME).1 $(NAME).html

distclean:
	$(RM) -Rf $(NATURALDOCS_DIR) manual.sgml

../Makefile.inc: ../Makefile.inc.in ../config.status
	cd .. && ./config.status