Introduction
Introduction Statistics Contact Development Disclaimer Help
tMakefile: set permissions and modes on installed files - vote - simple cgi vot…
git clone git://src.adamsgaard.dk/vote
Log
Files
Refs
README
LICENSE
---
commit 56220268f3d1ce5110b6a3b2a3281a9d6e21f401
parent ab248d07e87bb0d90520cad5be7225b853a6bc5e
Author: Anders Damsgaard <[email protected]>
Date: Sun, 27 Sep 2020 14:25:26 +0200
Makefile: set permissions and modes on installed files
Diffstat:
M Makefile | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/Makefile b/Makefile
t@@ -2,6 +2,7 @@
NAME = vote
+PREFIX ?= /var/www/cgi-bin
HERE_CFLAGS = ${CFLAGS}
HERE_LDFLAGS = -static ${LDFLAGS}
t@@ -16,12 +17,15 @@ ${NAME}: ${OBJ}
${CC} -o $@ ${OBJ} ${HERE_LDFLAGS}
install: ${NAME}
- mkdir -p /var/www/cgi-bin/${NAME}
- cp -f ${NAME} /var/www/cgi-bin/${NAME}/
+ mkdir -p
+ chmod 775 ${PREFIX}/${NAME}
+ chgrp www ${PREFIX}/${NAME}
+ cp -f ${NAME} ${PREFIX}/${NAME}/
+ chgrp www ${PREFIX}/${NAME}/${NAME}
uninstall:
- rm -f /var/www/cgi-bin/${NAME}/${NAME}
- -rmdir /var/www/cgi-bin/${NAME}
+ rm -f ${PREFIX}/${NAME}/${NAME}
+ -rmdir ${PREFIX}/${NAME}
clean:
rm -f *.o
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.