Blob
1 .POSIX:3 PREFIX = /usr/local4 MANPREFIX = ${PREFIX}/man5 CFLAGS = -std=c99 -O2 -pipe -Wall -Wextra6 DIST = Makefile lexicgen.c lexicgen.1 example.lx8 all: lexicgen10 clean:11 rm -f lexicgen lexicgen.tgz *.core13 man:14 man ./lexicgen.116 run: lexicgen example.lx17 ./lexicgen -o - example.lx19 install: lexicgen20 mkdir -p ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANPREFIX}/man121 cp -f lexicgen ${DESTDIR}${PREFIX}/bin/22 cp -f lexicgen.1 ${DESTDIR}${MANPREFIX}/man1/24 dist:25 rm -rf _dist26 mkdir -p _dist/lexicgen27 cp -f ${DIST} _dist/lexicgen/28 tar -C _dist -czf lexicgen.tgz lexicgen29 rm -rf _dist