#	@(#)Makefile	0.0 (Julian H. Stacey) 94 01 06

THING=	easter
PROG=	${THING}
SRCS=	${THING}.c
# .include <berklix_no_man.mk>

# CFLAGS += -static # allow same binary on hosts at different release levels
# Above CFLAGS breaks on 13.2-RELEASE but not on 12.4-RELEASE

# Bug	index.html is not getting remade

all:	html

install:
.if !exists(/site)	#{	Public & CDROM targets
	echo "Not installing as chroot cdrom target"
.else			#}{	My exported web servers
	install -c -m 755 ${THING} \
		 ${DESTDIR}/usr/local/bin/
	install -c -m 755 ${.CURDIR}/${THING}.1 \
		${DESTDIR}/usr/local/man/man1/${THING}.1
	gzip -f ${DESTDIR}/usr/local/man/man1/${THING}.1
		@# -f in case of a previous install.
	@#---------
	@# apache-1.3
	-install -c -m 755 ${THING} \
		 ${DESTDIR}/usr/local/www/cgi-bin/${THING}.bin
	-install -c -m 755 ${.CURDIR}/${THING}.sh \
		${DESTDIR}/usr/local/www/cgi-bin/${THING}
	@# apache-2.2
	-install -c -m 755 ${THING} \
		 ${DESTDIR}/usr/local/www/apache22/cgi-bin/${THING}.bin
	-install -c -m 755 ${.CURDIR}/${THING}.sh \
		${DESTDIR}/usr/local/www/apache22/cgi-bin/${THING}
.endif			#}


.include <bsd.prog.mk>
.include <berklix.mk>   # Needed to support recursive make html from above.
