genwebgallery
diff Makefile @ 2:abe1e48e0708
CHANGELOG gets generated now; reviewed Makefile
author | meillo@marmaro.de |
---|---|
date | Thu, 22 Nov 2007 21:36:20 +0100 |
parents | 9f4fa0bc1584 |
children | 83b0adfdd297 |
line diff
1.1 --- a/Makefile Thu Nov 22 21:13:35 2007 +0100 1.2 +++ b/Makefile Thu Nov 22 21:36:20 2007 +0100 1.3 @@ -4,6 +4,8 @@ 1.4 NAME=genwebgallery 1.5 VERSION = 0.3 1.6 NV=${NAME}-${VERSION} 1.7 + 1.8 +DOCS=COPYRIGHT CHANGELOG TODO 1.9 1.10 # paths 1.11 PREFIX = /usr 1.12 @@ -16,12 +18,28 @@ 1.13 build: 1.14 @echo build unneeded 1.15 1.16 -dist: 1.17 +dist: changelog 1.18 @mkdir ${NV} 1.19 - @cp -f ${NAME} ${NAME}.1 Makefile TODO COPYRIGHT ${NV} 1.20 + @cp -f ${NAME} ${NAME}.1 Makefile ${DOCS} ${NV} 1.21 @tar -czhof ${NV}.tar.gz ${NV} 1.22 @rm -rf ${NV} 1.23 1.24 +deb: dist 1.25 + @mkdir -p Packages 1.26 + @cp ${NV}.tar.gz Packages/ 1.27 + ( \ 1.28 + cd Packages/ ;\ 1.29 + tar -xzf ${NV}.tar.gz ;\ 1.30 + mv ${NV}.tar.gz ${NAME}_${VERSION}.orig.tar.gz ;\ 1.31 + cd ${NV}/ ;\ 1.32 + cp -r ../../debian/ . ;\ 1.33 + debuild ;\ 1.34 + ) 1.35 + 1.36 +changelog: 1.37 + @echo generating changelog from mercurial log 1.38 + @hg log -v --style changelog > CHANGELOG 1.39 + 1.40 install: 1.41 @echo installing executable file to ${DESTDIR}${BINDIR} 1.42 @mkdir -p ${DESTDIR}${BINDIR} 1.43 @@ -38,26 +56,14 @@ 1.44 @echo removing manual page from ${DESTDIR}${MANDIR}/man1 1.45 @rm -f ${DESTDIR}${MANDIR}/man1/${NAME}.1 1.46 1.47 -deb: dist 1.48 - @mkdir -p Packages 1.49 - @cp ${NV}.tar.gz Packages/ 1.50 - ( \ 1.51 - cd Packages/ ;\ 1.52 - tar -xzf ${NV}.tar.gz ;\ 1.53 - mv ${NV}.tar.gz ${NAME}_${VERSION}.orig.tar.gz ;\ 1.54 - cd ${NV}/ ;\ 1.55 - cp -r ../../debian/ . ;\ 1.56 - debuild ;\ 1.57 - ) 1.58 - 1.59 clean: 1.60 @echo clean unneeded 1.61 1.62 distclean: clean 1.63 - @rm -f ${NAME}-*.tar.gz 1.64 + @rm -f ${NAME}-*.tar.gz CHANGELOG 1.65 1.66 -debclean: 1.67 +debclean: distclean 1.68 @cd Packages/${NV}/ ; debuild clean ; 1.69 1.70 1.71 -.PHONY: all clean build install uninstall 1.72 +.PHONY: all dist deb changelog clean distclean debclean build install uninstall