View | Details | Raw Unified | Return to bug 7894
Collapse All | Expand All

(-)Makefile (-4 / +21 lines)
Lines 6-12 Link Here
6
# $Id: Makefile,v 1.9 1998/08/15 14:56:05 kuriyama Exp $
6
# $Id: Makefile,v 1.9 1998/08/15 14:56:05 kuriyama Exp $
7
#
7
#
8
8
9
DISTNAME=	ja-handbook-2.2.6
9
DISTNAME=	ja-handbook-2.2.7
10
CATEGORIES=	japanese
10
CATEGORIES=	japanese
11
DISTFILES=	# none
11
DISTFILES=	# none
12
12
Lines 17-25 Link Here
17
PREFIX=		/usr
17
PREFIX=		/usr
18
NO_MTREE=	yes
18
NO_MTREE=	yes
19
WRKSRC=		${WRKDIR}/handbook
19
WRKSRC=		${WRKDIR}/handbook
20
PLIST=		${WRKDIR}/PLIST
20
21
21
HANDBOOKDIR?=	/usr/opt/doc/ja/handbook
22
HANDBOOKDIR?=	/usr/opt/doc/ja/handbook
22
DOCDIR=		${PREFIX}/share/doc/ja
23
DOC_SUBDIR?=	share/doc/ja/handbook
23
24
24
do-extract:
25
do-extract:
25
	@if [ ! -d ${HANDBOOKDIR} ]; then \
26
	@if [ ! -d ${HANDBOOKDIR} ]; then \
Lines 33-41 Link Here
33
	${CP} ${HANDBOOKDIR}/Makefile ${WRKSRC}
34
	${CP} ${HANDBOOKDIR}/Makefile ${WRKSRC}
34
	${CP} ${HANDBOOKDIR}/*.sgml ${WRKSRC}
35
	${CP} ${HANDBOOKDIR}/*.sgml ${WRKSRC}
35
36
37
post-build:
38
	@${ECHO} "${DOC_SUBDIR}/handbook.html" >${PLIST}
39
	@${ECHO} "${DOC_SUBDIR}/handbook.ln" >>${PLIST}
40
	@${ECHO} "@exec cd %B; /bin/sh %f" >>${PLIST}
41
	@${ECHO} "${DOC_SUBDIR}/handbook.roff" >>${PLIST}
42
	@cd ${WRKSRC} && \
43
	 /bin/ls handbook[0-9]*.html \
44
	 | /usr/bin/sort|${AWK} '{printf "${DOC_SUBDIR}/%s\n", $$1}' \
45
	 >>${PLIST}
46
	@${ECHO} "${DOC_SUBDIR}/handbook_toc.html" >>${PLIST}
47
	@${ECHO} "@comment remove all links" >>${PLIST}
48
	@${ECHO} "@unexec cd %B; for i in *.html; do if [ -h \$$i ]; then /bin/rm -f \$$i; fi; done" \
49
	 >>${PLIST}
50
	@${ECHO} "@dirrm ${DOC_SUBDIR}" >>${PLIST}
51
36
pre-install:
52
pre-install:
37
	${MKDIR} ${DOCDIR}/handbook
53
	${MKDIR} ${PREFIX}/${DOC_SUBDIR}
54
38
post-install:
55
post-install:
39
	${INSTALL_DATA} ${WRKSRC}/handbook.ln ${DOCDIR}/handbook
56
	${INSTALL_DATA} ${WRKSRC}/handbook.ln ${PREFIX}/${DOC_SUBDIR}
40
57
41
.include <bsd.port.mk>
58
.include <bsd.port.mk>

Return to bug 7894