summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-09 12:55:30 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-09 12:55:30 +0200
commitddf2ff6ae6617609056680c91676322c70690716 (patch)
tree3239a436ce96254777cec8157e7f3b3d49c823b8 /Makefile
parentc805bd7f26f938e697446048318b719bfb6762ab (diff)
downloadcqrlogo-0.1.6.tar.gz
cqrlogo-0.1.6.tar.zst
add config file0.1.6
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