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

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

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

install:
.if !exists(/site)	#{	Public & CDROM targets
	echo "Not installing as chroot cdrom target"
.else			#}{	My exported web servers
	@# apache-1.3
	-install -c -m 755 ${THING} ${DESTDIR}/usr/local/www/cgi-bin/
	-install -c -m 755 ${.CURDIR}/${THING}.sh \
		${DESTDIR}/usr/local/www/cgi-bin/
	@# apache-2.2
	-install -c -m 755 ${THING} ${DESTDIR}/usr/local/www/apache22/cgi-bin/
	-install -c -m 755 ${.CURDIR}/${THING}.sh \
		${DESTDIR}/usr/local/www/apache22/cgi-bin/
.endif                  #}
	-touch		~jhs/.ski.log	# '-' in case install has run before
	-chmod 644	~jhs/.ski.log	# '-' in case install has run before
	-chown www:bin	~jhs/.ski.log	# '-' in case install has run before

.include <bsd.prog.mk>

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