Introduction
Introduction Statistics Contact Development Disclaimer Help
yacc.mk - 9base - revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log
Files
Refs
README
LICENSE
---
yacc.mk (908B)
---
1 # yacc.mk - included by all Makefiles in subdirs which depend on yacc
2
3 include ../config.mk
4
5 all:
6 @if [ ! -f y.tab.c ]; then \
7 make -f Makefile depend;\
8 fi
9 @make -f Makefile ${TARG}
10 @echo built ${TARG}
11
12
13 depend:
14 @echo YACC ${YFILES}
15 @${YACC} -d ${YFILES}
16
17 install: install-default post-install
18
19 install-default: ${TARG}
20 @mkdir -p ${DESTDIR}${PREFIX}/bin
21 @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
22 @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
23 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
24 @cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
25 @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
26
27 uninstall: pre-uninstall
28 rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
29 rm -f ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
30
31 .c.o:
32 @echo CC $*.c
33 @${CC} ${CFLAGS} -I../lib9 -I../lib9 $*.c
34
35 clean:
36 rm -f ${OFILES} ${TARG} y.tab.c y.tab.h
37
38 ${TARG}: ${OFILES}
39 @echo LD ${TARG}
40 @${CC} ${LDFLAGS} -o ${TARG} ${OFILES} -L../lib9 -l9 -lm
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.