Introduction
Introduction Statistics Contact Development Disclaimer Help
Adding manpage mechanisms. - thinglaunch - A simple command and password promtp…
git clone git://bitreich.org/thinglaunch
Log
Files
Refs
Tags
LICENSE
---
commit f709107300338c07130648c3eb03492aef3c2880
parent 5ace293264b48dfcfccb9358f8def262b51db199
Author: Christoph Lohmann <[email protected]>
Date: Sat, 2 Jul 2011 12:18:56 +0200
Adding manpage mechanisms.
Diffstat:
M Makefile | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/Makefile b/Makefile
@@ -15,7 +15,7 @@ options:
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
-config.h: config.mk
+config.h:
@echo creating $@ from config.def.h
@cp config.def.h $@
@@ -25,7 +25,7 @@ config.h: config.mk
${OBJ}: config.mk
-${NAME}: ${OBJ}
+${NAME}: config.h ${OBJ}
@echo CC -o $@
@${CC} -o $@ ${OBJ} ${LDFLAGS}
@ln -s ${NAME} thingaskpass 2>/dev/null; true
@@ -55,11 +55,17 @@ install: all
@mkdir -p ${DESTDIR}${PREFIX}/bin
@cp -f ${NAME} thingaskpass thingsudoaskpass ${DESTDIR}${PREFIX}/bin
@chmod 755 ${DESTDIR}${PREFIX}/bin/${NAME}
+ @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
+ @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+ @cp -f ${NAME}.1 ${DESTDIR}${MANPREFIX}/man1
+ @chmod 644 ${DESTDIR}${MANPREFIX}/man1/${NAME}.1
uninstall:
- @echo removing executable file from ${DESTDIR}${PREFIX}/bin
+ @echo removing executable files from ${DESTDIR}${PREFIX}/bin
@rm -f ${DESTDIR}${PREFIX}/bin/${NAME}
@rm -f ${DESTDIR}${PREFIX}/bin/thingaskpass
@rm -f ${DESTDIR}${PREFIX}/bin/thingsudoaskpass
+ @echo removing manual page from ${DESTDIR}${PREFIX}/man1
+ @rm -f ${DESTDIR}${MANPREFIX}/man1/${NAME}.1
.PHONY: all options clean dist install uninstall
You are viewing proxied material from bitreich.org. 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.