File: Makefile

package info (click to toggle)
sbm 3.7.1-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,060 kB
  • ctags: 1,590
  • sloc: asm: 11,940; ansic: 2,870; makefile: 531
file content (84 lines) | stat: -rw-r--r-- 1,576 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
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
# Smart Boot Manager documentation Makefile
# 
# Copyright (c) Suzhe 2000
#

ifeq ($(INFO_DIR),)
INFO_DIR=	/usr/info
endif

ifeq ($(DOC_DIR),)
DOC_DIR=	/usr/share/doc/btmgr
endif

HTML_DIR=	$(DOC_DIR)/html
OTHER_DOCFILES=	../AUTHORS ../COPYING ../ChangeLog ../CREDITS ../INSTALL ../TODO


USERGUIDE=	user-guide

SGML=		${USERGUIDE}.sgml
HTML=		${USERGUIDE}.html
PS=		${USERGUIDE}.ps
TXT=		${USERGUIDE}.txt
INFO=		${USERGUIDE}.info

USERGUIDE_CZ=	user-guide-cz

SGML_CZ=	${USERGUIDE_CZ}.sgml
HTML_CZ=	${USERGUIDE_CZ}.html
PS_CZ=		${USERGUIDE_CZ}.ps
TXT_CZ=		${USERGUIDE_CZ}.txt
INFO_CZ=	${USERGUIDE_CZ}.info

USERGUIDE_ZH=	user-guide-zh

SGML_ZH=	${USERGUIDE_ZH}.sgml
HTML_ZH=	${USERGUIDE_ZH}.html
TXT_ZH=		${USERGUIDE_ZH}.txt
INFO_ZH=	${USERGUIDE_ZH}.info

all:	${HTML} ${PS} ${TXT} ${INFO} \
	${HTML_CZ} ${PS_CZ} ${TXT_CZ} ${INFO_CZ} \
	${HTML_ZH} ${TXT_ZH} ${INFO_ZH}

${HTML}: ${SGML}
	sgml2html $<
${PS}: ${SGML}
	sgml2latex --output=ps $<
${TXT}: ${SGML}
	sgml2txt --filter $<
${INFO}: ${SGML}
	sgml2info $<

${HTML_CZ}: ${SGML_CZ}
	sgml2html $<
${PS_CZ}: ${SGML_CZ}
	sgml2latex --output=ps $<
${TXT_CZ}: ${SGML_CZ}
	sgml2txt --filter $<
${INFO_CZ}: ${SGML_CZ}
	sgml2info $<

${HTML_ZH}: ${SGML_ZH}
	sgml2html $<
${TXT_ZH}: ${SGML_ZH}
	sgml2txt --filter --charset=latin $<
${INFO_ZH}: ${SGML_ZH}
	sgml2info $<




install: all
	-@mkdir -p ${DOC_DIR} $(HTML_DIR)
	-@cp $(OTHER_DOCFILES) $(DOC_DIR)
	-@cp *.ps *.txt *.info $(DOC_DIR)
	-@cp *.html  ${HTML_DIR}


.PHONY: clean uninstall
uninstall:
	-@rm -fr ${DOC_DIR}
clean:
	-@rm -f *.bak *~ core *.ps *.html *.info *.txt