aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-08 17:06:06 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-08 17:06:06 +0200
commit996bbabdd9b490ec1263c8e601001db6b4b17759 (patch)
tree58fb59ff636d000a02a5a02ccd8f6d9756cc6bf4
parent6684ecfe31257bd15d2e3f54142bbc40add30ba3 (diff)
downloadcqrlogo-996bbabdd9b490ec1263c8e601001db6b4b17759.tar.gz
cqrlogo-996bbabdd9b490ec1263c8e601001db6b4b17759.tar.zst
update Makefile
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
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