xmenu/Makefile

30 lines
530 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}
${OBJS}: config.h
.c.o:
${CC} ${CFLAGS} -c $<
clean:
-rm ${OBJS} ${PROG}
install: all
install -d ${DESTDIR}${PREFIX}/bin/
2020-05-19 04:00:29 +02:00
install -d ${DESTDIR}${MANPREFIX}/man1/
2020-05-16 00:02:23 +02:00
install -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin/
2020-05-19 04:00:29 +02:00
install -m 644 ${PROG}.1 ${DESTDIR}${MANPREFIX}/man1/
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