xref: /openbsd/lib/libkeynote/Makefile (revision 264ca280)
1#	$OpenBSD: Makefile,v 1.20 2016/03/30 06:38:42 jmc Exp $
2
3LIB=	keynote
4MAN=	keynote.3 keynote.4 keynote.5
5NOPIC=
6CFLAGS+= -Wall -I. -I${.CURDIR}
7LEXFLAGS = -Cr -Pkn -s -i
8YACCFLAGS = -d -p kn -b k
9
10HDRS=	keynote.h
11SRCS=	k.tab.c lex.kn.c environment.c parse_assertion.c signature.c auxil.c \
12	base64.c
13
14CLEANFILES+= k.tab.c lex.kn.c k.tab.h
15
16k.tab.c k.tab.h: keynote.y keynote.h signature.h
17	$(YACC.y) $(YACCFLAGS) ${.CURDIR}/keynote.y
18
19lex.kn.c: keynote.l keynote.y keynote.h assertion.h signature.h
20	$(LEX.l) $(LEXFLAGS) ${.CURDIR}/keynote.l
21
22includes:
23	@@cd ${.CURDIR}; for i in $(HDRS); do \
24	    j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \
25		${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
26		$$i ${DESTDIR}/usr/include"; \
27	    echo $$j; \
28	    eval "$$j"; \
29	done
30
31.include <bsd.lib.mk>
32