Last change
on this file since 34 was
34,
checked in by hartmans, 17 years ago
|
Add xen and xen-common
|
-
Property svn:mime-type set to
text/script
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/usr/bin/make -f |
---|
2 | # -*- mode: Makefile; -*- |
---|
3 | XEN_ROOT = ../../.. |
---|
4 | include $(XEN_ROOT)/tools/Rules.mk |
---|
5 | |
---|
6 | VERSION = 1.0 |
---|
7 | HEADER = Vnet |
---|
8 | |
---|
9 | PS2PDF := ps2pdf |
---|
10 | DVIPS := dvips |
---|
11 | LATEX := latex |
---|
12 | LATEX2HTML := latex2html |
---|
13 | DOXYGEN := doxygen |
---|
14 | POD2MAN := pod2man |
---|
15 | |
---|
16 | MAN_DIR := /usr/share/man |
---|
17 | |
---|
18 | DOC_MAN5SRC := $(wildcard man/*.pod.5) |
---|
19 | DOC_MAN1SRC := $(wildcard man/*.pod.1) |
---|
20 | DOC_MAN1 := $(patsubst man/%.pod.1,man1/%.1,$(DOC_MAN1SRC)) |
---|
21 | DOC_MAN5 := $(patsubst man/%.pod.5,man5/%.5,$(DOC_MAN5SRC)) |
---|
22 | |
---|
23 | .PHONY: all man clean install |
---|
24 | |
---|
25 | .PHONY: all |
---|
26 | all: man |
---|
27 | |
---|
28 | .PHONY: man |
---|
29 | man: |
---|
30 | @if which $(POD2MAN) 1>/dev/null 2>/dev/null; then \ |
---|
31 | $(MAKE) $(DOC_MAN1) $(DOC_MAN5); fi |
---|
32 | |
---|
33 | man1/%.1: man/%.pod.1 Makefile |
---|
34 | $(INSTALL_DIR) $(@D) |
---|
35 | $(POD2MAN) --release=$(VERSION) --name=`echo $@ | sed 's/^man1.//'| \ |
---|
36 | sed 's/.1//'` -s 1 -c $(HEADER) $< $@ |
---|
37 | |
---|
38 | man5/%.5: man/%.pod.5 Makefile |
---|
39 | $(INSTALL_DIR) $(@D) |
---|
40 | $(POD2MAN) --release=$(VERSION) --name=`echo $@ | sed 's/^man5.//'| \ |
---|
41 | sed 's/.5//'` -s 5 -c $(HEADER) $< $@ |
---|
42 | |
---|
43 | .PHONY: clean |
---|
44 | clean: |
---|
45 | @$(RM) -rf man5 |
---|
46 | @$(RM) -rf man1 |
---|
47 | |
---|
48 | .PHONY: install |
---|
49 | install: all |
---|
50 | $(INSTALL_DIR) $(DESTDIR)$(MAN_DIR) |
---|
51 | $(CP) -dR man1 $(DESTDIR)$(MAN_DIR) |
---|
52 | $(CP) -dR man5 $(DESTDIR)$(MAN_DIR) |
---|
53 | |
---|
Note: See
TracBrowser
for help on using the repository browser.