From ddf2ff6ae6617609056680c91676322c70690716 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 9 Jul 2013 12:55:30 +0200 Subject: add config file --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3-54-g00ecf