genwebgallery
annotate Makefile @ 1:0947e06af4c4
Added tag 0.3 for changeset 9f4fa0bc15845113a59d176435a6c447356a027e
author | meillo@marmaro.de |
---|---|
date | Thu, 22 Nov 2007 21:13:35 +0100 |
parents | |
children | abe1e48e0708 |
rev | line source |
---|---|
meillo@0 | 1 # genwebgallery by meillo@marmaro.de |
meillo@0 | 2 |
meillo@0 | 3 |
meillo@0 | 4 NAME=genwebgallery |
meillo@0 | 5 VERSION = 0.3 |
meillo@0 | 6 NV=${NAME}-${VERSION} |
meillo@0 | 7 |
meillo@0 | 8 # paths |
meillo@0 | 9 PREFIX = /usr |
meillo@0 | 10 BINDIR = ${PREFIX}/bin |
meillo@0 | 11 MANDIR = ${PREFIX}/share/man |
meillo@0 | 12 |
meillo@0 | 13 all: |
meillo@0 | 14 @echo usage: make [un]install |
meillo@0 | 15 |
meillo@0 | 16 build: |
meillo@0 | 17 @echo build unneeded |
meillo@0 | 18 |
meillo@0 | 19 dist: |
meillo@0 | 20 @mkdir ${NV} |
meillo@0 | 21 @cp -f ${NAME} ${NAME}.1 Makefile TODO COPYRIGHT ${NV} |
meillo@0 | 22 @tar -czhof ${NV}.tar.gz ${NV} |
meillo@0 | 23 @rm -rf ${NV} |
meillo@0 | 24 |
meillo@0 | 25 install: |
meillo@0 | 26 @echo installing executable file to ${DESTDIR}${BINDIR} |
meillo@0 | 27 @mkdir -p ${DESTDIR}${BINDIR} |
meillo@0 | 28 @cp -f ${NAME} ${DESTDIR}${BINDIR} |
meillo@0 | 29 @chmod 755 ${DESTDIR}${BINDIR}/${NAME} |
meillo@0 | 30 @echo installing manual page to ${DESTDIR}${MANDIR}/man1 |
meillo@0 | 31 @mkdir -p ${DESTDIR}${MANDIR}/man1 |
meillo@0 | 32 @sed 's/VERSION/${VERSION}/g' < ${NAME}.1 > ${DESTDIR}${MANDIR}/man1/${NAME}.1 |
meillo@0 | 33 @chmod 644 ${DESTDIR}${MANDIR}/man1/${NAME}.1 |
meillo@0 | 34 |
meillo@0 | 35 uninstall: |
meillo@0 | 36 @echo removing executable file from ${DESTDIR}${BINDIR} |
meillo@0 | 37 @rm -f ${DESTDIR}${BINDIR}/${NAME} |
meillo@0 | 38 @echo removing manual page from ${DESTDIR}${MANDIR}/man1 |
meillo@0 | 39 @rm -f ${DESTDIR}${MANDIR}/man1/${NAME}.1 |
meillo@0 | 40 |
meillo@0 | 41 deb: dist |
meillo@0 | 42 @mkdir -p Packages |
meillo@0 | 43 @cp ${NV}.tar.gz Packages/ |
meillo@0 | 44 ( \ |
meillo@0 | 45 cd Packages/ ;\ |
meillo@0 | 46 tar -xzf ${NV}.tar.gz ;\ |
meillo@0 | 47 mv ${NV}.tar.gz ${NAME}_${VERSION}.orig.tar.gz ;\ |
meillo@0 | 48 cd ${NV}/ ;\ |
meillo@0 | 49 cp -r ../../debian/ . ;\ |
meillo@0 | 50 debuild ;\ |
meillo@0 | 51 ) |
meillo@0 | 52 |
meillo@0 | 53 clean: |
meillo@0 | 54 @echo clean unneeded |
meillo@0 | 55 |
meillo@0 | 56 distclean: clean |
meillo@0 | 57 @rm -f ${NAME}-*.tar.gz |
meillo@0 | 58 |
meillo@0 | 59 debclean: |
meillo@0 | 60 @cd Packages/${NV}/ ; debuild clean ; |
meillo@0 | 61 |
meillo@0 | 62 |
meillo@0 | 63 .PHONY: all clean build install uninstall |