## for MAINTAINERS.

update-credits: AUTHORS ../namazu-web/webmasters
	@echo Namazu Project > CREDITS
	@echo >> CREDITS
	@echo Developers >> CREDITS
	@echo >> CREDITS
	@perl -ne 'next if /^\x23/; print "  * $$_"' AUTHORS  >> CREDITS
	@echo >> CREDITS
	@echo Webpage Maintainers >> CREDITS
	@echo >> CREDITS
	@perl -ne 'next if /^\x23/; print "  * $$_"' \
		../namazu-web/webmasters >> CREDITS

snapshot:
	$(MAKE) dist distdir=$(PACKAGE)`date +"-%Y-%m-%d"`


cxref: src/namazu
	if test ! -d cxref; then \
	    $(mkinstalldirs) cxref; \
	fi
	cxref -N namazu -html20-src -I . -I src -I nmz -I lib \
	    -warn-xref -index-all -xref-all -O cxref \
	    nmz/*.[ch] src/*.[ch] lib/*.[ch] 1> cxref/warnings 

	# Two passes are needed for accurate cross referencing.
	cxref -N namazu -html20-src -I . -I src -I nmz -I lib \
	    -warn-xref -index-all -xref-all -O cxref \
	    nmz/*.[ch] src/*.[ch] lib/*.[ch] 1> cxref/warnings 

cxref-latex2e: src/namazu
	if test ! -d cxref-latex2e; then \
	    $(mkinstalldirs) cxref-latex2e; \
	fi
	cxref -N namazu -latex2e -I . -I src -I nmz -I lib \
	    -warn-xref -index-all -xref-all -O cxref-latex2e \
	    nmz/*.[ch] src/*.[ch] lib/*.[ch] 1> cxref-latex2e/warnings 

	# Two passes are needed for accurate cross referencing.
	cxref -N namazu -latex2e -I . -I src -I nmz -I lib \
	    -warn-xref -index-all -xref-all -O cxref-latex2e \
	    nmz/*.[ch] src/*.[ch] lib/*.[ch] 1> cxref-latex2e/warnings 

	cd cxref-latex2e && \
	platex namazu.tex && \
	platex namazu.tex # Two passes are needed for referencing.


update:
	./make_sjis_po
	cd doc && make update-doc
	cd man && make update-man


global: HTAGS

HTAGS: GTAGS
	htags

GTAGS: src/namazu
	gtags
