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}
|
|
|
|
|
2020-07-30 05:25:55 +02:00
|
|
|
${OBJS}: config.h ${PROG}.h
|
2020-05-16 00:02:23 +02:00
|
|
|
|
|
|
|
.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-06-16 16:17:08 +02:00
|
|
|
rm -f ${DESTDIR}${PREFIX}/bin/${PROG}
|
|
|
|
rm -f ${DESTDIR}${MANPREFIX}/man1/${PROG}.1
|
2020-05-16 00:02:23 +02:00
|
|
|
|
|
|
|
.PHONY: all clean install uninstall
|