xmenu/Makefile

30 lines
548 B
Makefile
Raw Normal View History

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-10-06 18:41:49 +02:00
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
2020-05-16 00:02:23 +02:00
uninstall:
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