|
@@ -1,5 +1,8 @@ |
|
|
include config.mk |
|
|
include config.mk |
|
|
|
|
|
|
|
|
|
|
|
bindir = ${DESTDIR}${PREFIX} |
|
|
|
|
|
mandir = ${DESTDIR}${MANPREFIX} |
|
|
|
|
|
|
|
|
SRCS = ${PROG}.c |
|
|
SRCS = ${PROG}.c |
|
|
OBJS = ${SRCS:.c=.o} |
|
|
OBJS = ${SRCS:.c=.o} |
|
|
|
|
|
|
|
@@ -17,13 +20,13 @@ clean: |
|
|
-rm ${OBJS} ${PROG} |
|
|
-rm ${OBJS} ${PROG} |
|
|
|
|
|
|
|
|
install: all |
|
|
install: all |
|
|
mkdir -p ${DESTDIR}${PREFIX}/bin |
|
|
|
|
|
install -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG} |
|
|
|
|
|
mkdir -p ${DESTDIR}${MANPREFIX}/man1 |
|
|
|
|
|
install -m 644 ${PROG}.1 ${DESTDIR}${MANPREFIX}/man1/${PROG}.1 |
|
|
|
|
|
|
|
|
mkdir -p ${bindir}/bin |
|
|
|
|
|
install -m 755 ${PROG} ${bindir}/bin/${PROG} |
|
|
|
|
|
mkdir -p ${mandir}/man1 |
|
|
|
|
|
install -m 644 ${PROG}.1 ${mandir}/man1/${PROG}.1 |
|
|
|
|
|
|
|
|
uninstall: |
|
|
uninstall: |
|
|
rm -f ${DESTDIR}${PREFIX}/bin/${PROG} |
|
|
|
|
|
rm -f ${DESTDIR}${MANPREFIX}/man1/${PROG}.1 |
|
|
|
|
|
|
|
|
rm -f ${bindir}/bin/${PROG} |
|
|
|
|
|
rm -f ${mandir}/man1/${PROG}.1 |
|
|
|
|
|
|
|
|
.PHONY: all clean install uninstall |
|
|
.PHONY: all clean install uninstall |