Add an installer-fetchpkgs target and other related stuff to reduce the
[dragonfly.git] / release / doc / Makefile
1 # $FreeBSD: src/release/doc/Makefile,v 1.2.2.3 2001/06/22 00:35:10 bmah Exp $
2 # $DragonFly: src/release/doc/Attic/Makefile,v 1.2 2003/06/17 04:27:19 dillon Exp $
3 #
4 # The user can override the default language to build and install
5 # with the RELNOTES_LANG variable.
6
7 .if defined(RELNOTES_LANG) && !empty(RELNOTES_LANG)
8 SUBDIR =        ${RELNOTES_LANG}
9 .else
10 SUBDIR =        en_US.ISO8859-1
11 .endif
12
13 RELN_ROOT?= ${.CURDIR}
14
15 .if defined(SUPHOST)
16 SUPFLAGS+=      -h ${SUPHOST}
17 .endif
18 update:
19 .if defined(SUP_UPDATE)
20 .if !defined(DOCSUPFILE)
21         @echo "Error: Please define DOCSUPFILE before doing make update."
22         @exit 1
23 .endif
24         @echo "--------------------------------------------------------------"
25         @echo ">>> Running ${SUP}"
26         @echo "--------------------------------------------------------------"
27         @${SUP} ${SUPFLAGS} ${DOCSUPFILE}
28 .elif defined(CVS_UPDATE)
29         @echo "--------------------------------------------------------------"
30         @echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
31         @echo "--------------------------------------------------------------"
32         cd ${.CURDIR}; cvs -q update -P -d
33 .else
34         @echo "Error: Please define either SUP_UPDATE or CVS_UPDATE first."
35 .endif
36
37 .include "${RELN_ROOT}/share/mk/doc.relnotes.mk"
38 .include "${DOC_PREFIX}/share/mk/doc.subdir.mk"