source: trunk/packages/xen-common/xen-common/tools/vnet/doc/Makefile @ 34

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; -*-
3XEN_ROOT        = ../../..
4include $(XEN_ROOT)/tools/Rules.mk
5
6VERSION = 1.0
7HEADER  = Vnet
8
9PS2PDF          := ps2pdf
10DVIPS           := dvips
11LATEX           := latex
12LATEX2HTML      := latex2html
13DOXYGEN         := doxygen
14POD2MAN         := pod2man
15
16MAN_DIR         := /usr/share/man
17
18DOC_MAN5SRC     := $(wildcard man/*.pod.5)
19DOC_MAN1SRC     := $(wildcard man/*.pod.1)
20DOC_MAN1        := $(patsubst man/%.pod.1,man1/%.1,$(DOC_MAN1SRC))
21DOC_MAN5        := $(patsubst man/%.pod.5,man5/%.5,$(DOC_MAN5SRC))
22
23.PHONY: all man clean install
24
25.PHONY: all
26all: man
27
28.PHONY: man
29man:
30        @if which $(POD2MAN) 1>/dev/null 2>/dev/null; then \
31        $(MAKE) $(DOC_MAN1) $(DOC_MAN5); fi
32
33man1/%.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
38man5/%.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
44clean:
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.