genwebgallery
view 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 |
line source
1 # genwebgallery by meillo@marmaro.de
4 NAME=genwebgallery
5 VERSION = 0.3
6 NV=${NAME}-${VERSION}
8 # paths
9 PREFIX = /usr
10 BINDIR = ${PREFIX}/bin
11 MANDIR = ${PREFIX}/share/man
13 all:
14 @echo usage: make [un]install
16 build:
17 @echo build unneeded
19 dist:
20 @mkdir ${NV}
21 @cp -f ${NAME} ${NAME}.1 Makefile TODO COPYRIGHT ${NV}
22 @tar -czhof ${NV}.tar.gz ${NV}
23 @rm -rf ${NV}
25 install:
26 @echo installing executable file to ${DESTDIR}${BINDIR}
27 @mkdir -p ${DESTDIR}${BINDIR}
28 @cp -f ${NAME} ${DESTDIR}${BINDIR}
29 @chmod 755 ${DESTDIR}${BINDIR}/${NAME}
30 @echo installing manual page to ${DESTDIR}${MANDIR}/man1
31 @mkdir -p ${DESTDIR}${MANDIR}/man1
32 @sed 's/VERSION/${VERSION}/g' < ${NAME}.1 > ${DESTDIR}${MANDIR}/man1/${NAME}.1
33 @chmod 644 ${DESTDIR}${MANDIR}/man1/${NAME}.1
35 uninstall:
36 @echo removing executable file from ${DESTDIR}${BINDIR}
37 @rm -f ${DESTDIR}${BINDIR}/${NAME}
38 @echo removing manual page from ${DESTDIR}${MANDIR}/man1
39 @rm -f ${DESTDIR}${MANDIR}/man1/${NAME}.1
41 deb: dist
42 @mkdir -p Packages
43 @cp ${NV}.tar.gz Packages/
44 ( \
45 cd Packages/ ;\
46 tar -xzf ${NV}.tar.gz ;\
47 mv ${NV}.tar.gz ${NAME}_${VERSION}.orig.tar.gz ;\
48 cd ${NV}/ ;\
49 cp -r ../../debian/ . ;\
50 debuild ;\
51 )
53 clean:
54 @echo clean unneeded
56 distclean: clean
57 @rm -f ${NAME}-*.tar.gz
59 debclean:
60 @cd Packages/${NV}/ ; debuild clean ;
63 .PHONY: all clean build install uninstall