summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-02-20 08:42:22 +0100
committerGravatar Christian Hesse <mail@eworm.de>2014-02-20 08:42:22 +0100
commit2c277dc0c5cb936a23ee58948854b2e3eb6dd251 (patch)
tree0df65f44583d66d2a1d40819bc6432edccdc3540 /Makefile
parent2dd889294d577e484a431b7bce20aaae1731786f (diff)
downloadcqrlogo-2c277dc0c5cb936a23ee58948854b2e3eb6dd251.tar.gz
cqrlogo-2c277dc0c5cb936a23ee58948854b2e3eb6dd251.tar.zst
add and install configuration files for apache and lighttpd
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 06fa406..f38be3a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
# cqrlogo - CGI QR-Code logo for web services
PREFIX := /usr
+APACHECONF := /etc/apache/conf/extra/
+LIGHTTPDCONF := /etc/lighttpd/conf.d/
CC := gcc
MD := markdown
INSTALL := install
@@ -43,13 +45,17 @@ cqrlogo.png: cqrlogo.cgi
QUERY_STRING='scale=4' \
./cqrlogo.cgi | $(SED) '1,/^$$/d' > cqrlogo.png
-install: install-bin install-doc
+install: install-bin install-config install-doc
install-bin: cqrlogo.cgi cqrlogo.fcgi
$(INSTALL) -D -m0755 cqrlogo.cgi $(DESTDIR)$(PREFIX)/share/webapps/cqrlogo/cqrlogo.cgi
$(INSTALL) -D -m0755 cqrlogo.fcgi $(DESTDIR)$(PREFIX)/share/webapps/cqrlogo/cqrlogo.fcgi
$(INSTALL) -D -m0644 cqrlogo.conf $(DESTDIR)/etc/cqrlogo.conf
+install-config: config/apache.conf config/lighttpd.conf
+ $(INSTALL) -D -m0644 config/apache.conf $(DESTDIR)$(APACHECONF)/cqrlogo.conf
+ $(INSTALL) -D -m0644 config/lighttpd.conf $(DESTDIR)$(LIGHTTPDCONF)/cqrlogo.conf
+
install-doc: README.html cqrlogo.png
$(INSTALL) -D -m0644 README.md $(DESTDIR)$(PREFIX)/share/doc/cqrlogo/README.md
$(INSTALL) -D -m0644 README.html $(DESTDIR)$(PREFIX)/share/doc/cqrlogo/README.html