dwm-meillo

diff Makefile @ 116:eca09aac3ccc

makefile now sets permissions for executables and man pages
author arg@10ksloc.org
date Thu, 20 Jul 2006 09:45:47 +0200
parents c4f8d7695833
children 36cabfe408cd
line diff
     1.1 --- a/Makefile	Thu Jul 20 07:26:23 2006 +0200
     1.2 +++ b/Makefile	Thu Jul 20 09:45:47 2006 +0200
     1.3 @@ -41,9 +41,15 @@
     1.4  install: all
     1.5  	@mkdir -p ${DESTDIR}${PREFIX}/bin
     1.6  	@cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
     1.7 +	@for i in ${BIN}; do \
     1.8 +		chmod 755 ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
     1.9 +	done
    1.10  	@echo installed executable files to ${DESTDIR}${PREFIX}/bin
    1.11  	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
    1.12  	@cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
    1.13 +	@for i in ${MAN1}; do \
    1.14 +		chmod 444 ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
    1.15 +	done
    1.16  	@echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
    1.17  
    1.18  uninstall: