
PROG= a2p

SRCS+= a2p.c hash.c str.c walk.c util.c
CFLAGS+= -I${.CURDIR}/../perl

LDADD= -lm
DPADD= ${LIBM}

MAN1+= a2p.1 s2p.1 h2ph.1  

beforeinstall:
	install -c -o ${BINOWN} -g ${BINGRP} -m 555 ${.CURDIR}/s2p \
		${DESTDIR}${BINDIR}
	install -c -o ${BINOWN} -g ${BINGRP} -m 555 ${.CURDIR}/h2ph \
		${DESTDIR}${BINDIR}

afterinstall:
	-mkdir -p ${DESTDIR}/usr/share/perl/sys
	cd ${DESTDIR}/usr/include ; h2ph * sys/*

.include "../../Makefile.inc"
.include <bsd.prog.mk>


PROG= a2p

SRCS+= a2p.c hash.c str.c walk.c util.c
CFLAGS+= -I${.CURDIR}/../perl
CLEANFILES+= y.tab.h a2p.c

LDADD= -lm
DPADD= ${LIBM}

MAN1+= a2p.1 s2p.1 h2ph.1  

beforeinstall:
	install -c -o ${BINOWN} -g ${BINGRP} -m 555 ${.CURDIR}/s2p \
		${DESTDIR}${BINDIR}
	install -c -o ${BINOWN} -g ${BINGRP} -m 555 ${.CURDIR}/h2ph \
		${DESTDIR}${BINDIR}

afterinstall:
	-mkdir -p ${DESTDIR}/usr/share/perl/sys
	cd ${DESTDIR}/usr/include ; h2ph * sys/*

.include "../../Makefile.inc"
.include <bsd.prog.mk>

Add the files y.tab.h and a2p.c that get automatically generated to the CLEANFILES target. Remove the file a2p.c from the source tree, this get generated anew from a2p.y.
Add the files y.tab.h and a2p.c that get automatically generated to
the CLEANFILES target. Remove the file a2p.c from the source tree, this get
generated anew from a2p.y.
