2020-05-16 00:02:23 +02:00
|
|
|
include config.mk
|
|
|
|
|
|
|
|
SRCS = ${PROG}.c
|
|
|
|
OBJS = ${SRCS:.c=.o}
|
|
|
|
|
|
|
|
all: ${PROG}
|
|
|
|
|
|
|
|
${PROG}: ${OBJS}
|
|
|
|
${CC} -o $@ ${OBJS} ${LDFLAGS}
|
|
|
|
|
|
|
|
${OBJS}: config.h
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
${CC} ${CFLAGS} -c $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm ${OBJS} ${PROG}
|
|
|
|
|
|
|
|
install: all
|
2020-05-28 01:57:38 +02:00
|
|
|
install -D -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG}
|
|
|
|
install -D -m 644 ${PROG}.1 ${DESTDIR}${MANPREFIX}/man1/${PROG}.1
|
2020-05-16 00:02:23 +02:00
|
|
|
|
|
|
|
uninstall:
|
2020-05-17 06:28:04 +02:00
|
|
|
rm -f ${DESTDIR}/${PREFIX}/bin/${PROG}
|
2020-05-19 03:56:53 +02:00
|
|
|
rm -f ${DESTDIR}/${MANPREFIX}/man1/${PROG}.1
|
2020-05-16 00:02:23 +02:00
|
|
|
|
|
|
|
.PHONY: all clean install uninstall
|