3 .PHONY
: all clean install uninstall
13 ${CC} ${LDFLAGS} -o
$@
${OBJS} ${LDLIBS}
15 ${PROG}.o
: ${PROG}.c parser.h
17 parser.o
: parser.c parser.h
20 ${RM} -f
${OBJS} ${PROG}
22 install: ${PROG} ${PROG}.1
23 mkdir
-p
${DESTDIR}${PREFIX}/bin
24 install -m
755 ${PROG} ${DESTDIR}${PREFIX}/bin
25 mkdir
-p
${DESTDIR}${MANPREFIX}/man1
26 gzip
< ${PROG}.1 > ${DESTDIR}${MANPREFIX}/man1
/${PROG}.1.gz
29 ${RM} -f
${DESTDIR}${PREFIX}/bin
/${PROG}
30 ${RM} -f
${DESTDIR}${MANPREFIX}/man1
/${PROG}.1.gz
33 $(CC
) -c
$(CFLAGS
) -o
$@
$<