summaryrefslogtreecommitdiffstats
path: root/scripts/aurblup/Makefile
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-02-05 17:42:47 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2011-02-11 14:43:22 +0100
commit400d7845e4c959660edf4cbeb1a390c6590cc4fc (patch)
treeb404bf77af58e698d1ac55b82555c2fda35b9a7f /scripts/aurblup/Makefile
parentb69f548065e78d14afcdc91548d73539762f8d93 (diff)
downloadaurweb-400d7845e4c959660edf4cbeb1a390c6590cc4fc.tar.xz
Add AUR package blacklist updater (aurblup).
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'scripts/aurblup/Makefile')
-rw-r--r--scripts/aurblup/Makefile30
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