summaryrefslogtreecommitdiffstats
path: root/scripts/aurblup/Makefile
blob: 2d574708e6e7a01920b7c0be152b0880a2f65266 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
include config.mk

SRC = aurblup.c
OBJ = ${SRC:.c=.o}

all: aurblup

config.h:
	cp config.h.proto config.h

${OBJ}: config.h

aurblup: ${OBJ}

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