summaryrefslogtreecommitdiffstats
path: root/scripts/aurblup/Makefile
blob: 67fcac19141d2c56f121a679a18358235d33f1fe (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
27
28
29
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