aboutsummaryrefslogtreecommitdiff
path: root/pt_BR.ISO8859-1/htdocs/doc/Makefile
blob: 96f02c62503d6d290b3a51817b9b89af85790272 (plain) (blame)
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
#
# $FreeBSD$
#
# Build the FreeBSD documentation *outside* of the doc/ tree, and install it
# in to the right place as necessary.
#

.if exists(../Makefile.conf)
.include "../Makefile.conf"
.endif
.if exists(../Makefile.inc)
.include "../Makefile.inc"
.endif

_DOC_FORMATS?=	html-split html

all: all-all 


all-all:
	${MAKE} -C ${DOC_PREFIX}/${LANGCODE} FORMATS="${_DOC_FORMATS}" all

all-pgpkeyring:
	${MAKE} -C ${DOC_PREFIX}/share/pgpkeys pgpkeyring.txt

clean:
	${MAKE} -C ${DOC_PREFIX}/${LANGCODE} FORMATS="${_DOC_FORMATS}" DOCDIR=${DESTDIR}/data/doc clean

# here are dragons
install:
	unset DESTDIR || true; \
	  ${MAKE} -C ${DOC_PREFIX}/${LANGCODE} FORMATS="${_DOC_FORMATS}" DOCDIR=${DESTDIR}/data/doc install
	${CP} ${DOC_PREFIX}/share/pgpkeys/pgpkeyring.txt ${DESTDIR}/data/doc/pgpkeyring.txt

.include "${DOC_PREFIX}/share/mk/web.site.mk"
.if ${LANGCODE} == en_US.ISO8859-1
all: all-pgpkeyring
.endif


# XXX
obj: _OBJUSE

_OBJUSE: .USE
	@unset DESTDIR || true; \
	 cd ${DOC_PREFIX}/${LANGCODE}; \
		${MAKE} ${.TARGET}