# $Id: Makefile,v 1.2 2003/02/05 11:20:49 mdk Exp $

M4 = m4 -P

OBJ = objective welcome

all: $(OBJ)

jfindex:
	(cd ../../; find docs -name 'info' | xargs bin/genindex.pl jfindex.db)

objective: objective.m4 messages.m4
	$(M4) objective.m4 | nkf -j > $@

welcome: welcome.m4 messages.m4
	$(M4) welcome.m4 | nkf -j > $@

monthly: monthly.m4 messages.m4 jfindex
	$(M4) monthly.m4 | nkf -j

monthly-mail: monthly.m4 messages.m4 jfindex
	$(M4) monthly.m4 | nkf -j  | sendmail JF@linux.or.jp

clean:
	rm -f $(OBJ)
