diff options
Diffstat (limited to 'scripts/aurblup/Makefile')
-rw-r--r-- | scripts/aurblup/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/aurblup/Makefile b/scripts/aurblup/Makefile new file mode 100644 index 0000000..67fcac1 --- /dev/null +++ b/scripts/aurblup/Makefile @@ -0,0 +1,30 @@ +include config.mk + +SRC = aurblup.c +OBJ = ${SRC:.c=.o} + +all: aurblup + +.c.o: + ${CC} -c ${CFLAGS} $< + +config.h: + cp config.h.proto config.h + +${OBJ}: config.h + +aurblup: ${OBJ} + ${CC} -o $@ ${OBJ} ${LDFLAGS} + +install: aurblup + install -Dm0755 aurblup "${DESTDIR}${PREFIX}/bin/aurblup" + install -dm0755 "${DESTDIR}/var/lib/aurblup/" + +uninstall: + rm -f "${DESTDIR}${PREFIX}/bin/aurblup" + rm -f "${DESTDIR}/var/lib/aurblup/" + +clean: + rm -f aurblup ${OBJ} + +.PHONY: all install uninstall clean |