From 996bbabdd9b490ec1263c8e601001db6b4b17759 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 8 Jul 2013 17:06:06 +0200 Subject: update Makefile --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4d910b2..d8d213d 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ # cqrlogo - CGI QR-Code logo for web services CC := gcc +INSTALL := install +RM := rm CFLAGS += -O2 -Wall -Werror CFLAGS += $(shell pkg-config --cflags --libs gdk-pixbuf-2.0) \ $(shell pkg-config --cflags --libs libqrencode) @@ -8,5 +10,8 @@ CFLAGS += $(shell pkg-config --cflags --libs gdk-pixbuf-2.0) \ all: cqrlogo.c $(CC) $(CFLAGS) -o cqrlogo cqrlogo.c +install: + $(INSTALL) -D -m0755 cqrlogo $(DESTDIR)/usr/share/webapps/cqrlogo/cqrlogo + clean: - /bin/rm -f *.o *~ cqrlogo + $(RM) -f *.o *~ cqrlogo -- cgit v1.2.3-70-g09d2