PageRenderTime 16ms CodeModel.GetById 2ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

/release/doc/Makefile

https://bitbucket.org/freebsd/freebsd-head/
Makefile | 38 lines | 30 code | 3 blank | 5 comment | 1 complexity | 359ef1fb7b27983b37d7a9ecbfbc8ada MD5 | raw file
 1# $FreeBSD$
 2#
 3# The user can override the default language to build and install
 4# with the RELNOTES_LANG variable.
 5# 
 6.if defined(RELNOTES_LANG) && !empty(RELNOTES_LANG)
 7SUBDIR+= 	${RELNOTES_LANG}
 8.else
 9SUBDIR+=	en_US.ISO8859-1
10.endif
11SUBDIR+=	share/xml
12
13RELN_ROOT?= ${.CURDIR}
14
15.if defined(SUPHOST)
16SUPFLAGS+=	-h ${SUPHOST}
17.endif
18update:
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"