summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d8d213d..855cedb 100644
--- a/Makefile
+++ b/Makefile
@@ -2,14 +2,17 @@
CC := gcc
INSTALL := install
+CP := cp
RM := rm
CFLAGS += -O2 -Wall -Werror
CFLAGS += $(shell pkg-config --cflags --libs gdk-pixbuf-2.0) \
$(shell pkg-config --cflags --libs libqrencode)
-all: cqrlogo.c
+all: cqrlogo.c config.h
$(CC) $(CFLAGS) -o cqrlogo cqrlogo.c
+config.h:
+ $(CP) config.def.h config.h
install:
$(INSTALL) -D -m0755 cqrlogo $(DESTDIR)/usr/share/webapps/cqrlogo/cqrlogo