mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
We don't need to add rules for implicit .c -> .o conversions. Also add -O2 to the CFLAGS as gcc doesn't print many warnings unless at least some level of optimization is used. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
26 lines
423 B
Makefile
26 lines
423 B
Makefile
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
|