File:  [cvs.NetBSD.org] / htdocs / Makefile
Revision 1.100: download - view: text, annotated - select for diffs
Sat May 28 09:27:40 2016 UTC (10 years, 5 months ago) by snj
Branches: MAIN
CVS tags: HEAD
releng subdir is toast

# $NetBSD: Makefile,v 1.100 2016/05/28 09:27:40 snj Exp $

SUBDIR=		about
SUBDIR+=	changes
SUBDIR+=	community
SUBDIR+=	contrib
SUBDIR+=	developers
SUBDIR+=	docs
SUBDIR+=	donations
SUBDIR+=	errors
SUBDIR+=	foundation
SUBDIR+=	gallery
SUBDIR+=	images
SUBDIR+=	mailinglists
SUBDIR+=	mirrors
SUBDIR+=	releases
SUBDIR+=	people
SUBDIR+=	ports
SUBDIR+=	sites
SUBDIR+=	support

DATA+=		.htaccess robots.txt

AUTOLAYOUTDIR=	${.CURDIR}
FILES=	gallery/events.xml gallery/events.html layout.xml

FILES+=index.html changes/index.xml changes/index.html

update:
	cvs update -A ${FILES} makeindex.sh Makefile share

# This target commits the relevant files for news and events.
commit:
.if defined(MSG) && !empty(MSG)
	cvs commit -m '${MSG}' ${FILES}
.else
	cvs commit ${FILES}
.endif

# This target prints the changes in the news and events.
diff:
	cvs diff -bu ${FILES}

#
# Some simple integrity checks.
#

LINT_LAYOUT_SKIP_FILES=		docs/internals/*.xml
LINT_LAYOUT_SKIP_FILES+=	autolayout.xml
LINT_LAYOUT_SKIP_FILES+=	docs/guide/??/*.xml
LINT_LAYOUT_SKIP_FILES+=	layout.xml
LINT_LAYOUT_SKIP_FILES+=	pt_BR/Documentation/pkgsrc/*.xml
LINT_LAYOUT_SKIP_FILES+=	share/xml/*.xml

# The lint-layout target checks that all XML files are mentioned in the
# layout.xml file.
lint: lint-layout
.PHONY: lint-layout
lint-layout:
	${RUN} ${FIND} * -name '*.xml' -print				\
	| while read f; do						\
		case "$$f" in						\
		${LINT_LAYOUT_SKIP_FILES:@.m.@${.m.}) continue;;@}	\
		esac;							\
		${FGREP} -q "\"$$f\"" layout.xml			\
		|| echo "WARNING: [lint-layout] \"$$f\" is not mentioned in layout.xml." 1>&2; \
	done

.include "share/mk/language.mk"
.include "share/mk/web.site.mk"

CVSweb <webmaster@jp.NetBSD.org>