# HG changeset patch # User meillo@marmaro.de # Date 1210586044 -7200 # Node ID cb1f0dda49e7ab3d0f3e112f458083a2254c0b71 # Parent 3ce5429cd21914d53d4d9f7c3bbd38464dcbbb99 simplified Makefile to what is really needed diff -r 3ce5429cd219 -r cb1f0dda49e7 Makefile --- a/Makefile Sat May 10 21:48:21 2008 +0200 +++ b/Makefile Mon May 12 11:54:04 2008 +0200 @@ -2,44 +2,34 @@ NAME=genwebgallery -VERSION = 0.5 +VERSION=$(shell sed -n '/VERSION=/ s/^.*=//p' $(NAME) ) NV=${NAME}-${VERSION} DOCS=COPYRIGHT ChangeLog TODO # paths -PREFIX = /usr +PREFIX = /usr/local BINDIR = ${PREFIX}/bin MANDIR = ${PREFIX}/share/man + all: @echo usage: make [un]install -build: - @echo build unneeded dist: changelog + @echo "generating distribution tarball" @mkdir ${NV} @cp -f ${NAME} ${NAME}.1 Makefile ${DOCS} ${NV} - @tar -czho --owner 0 --group 0 -f ${NV}.tar.gz ${NV} + @tar -czho --owner 0 --group 0 -f ../${NV}.tar.gz ${NV} @rm -rf ${NV} -deb: dist - @mkdir -p Packages - @cp ${NV}.tar.gz Packages/ - @( \ - cd Packages/ ;\ - tar -xzf ${NV}.tar.gz ;\ - mv ${NV}.tar.gz ${NAME}_${VERSION}.orig.tar.gz ;\ - cd ${NV}/ ;\ - cp -r ../../debian/ . ;\ - debuild -as ;\ - ) changelog: @echo generating changelog from mercurial log @hg log -v --style changelog > ChangeLog + install: @echo installing executable file to ${DESTDIR}${BINDIR} @mkdir -p ${DESTDIR}${BINDIR} @@ -47,23 +37,21 @@ @chmod 755 ${DESTDIR}${BINDIR}/${NAME} @echo installing manual page to ${DESTDIR}${MANDIR}/man1 @mkdir -p ${DESTDIR}${MANDIR}/man1 - @sed 's/VERSION/${VERSION}/g' < ${NAME}.1 > ${DESTDIR}${MANDIR}/man1/${NAME}.1 + @cp -f ${NAME}.1 ${DESTDIR}${MANDIR}/man1 @chmod 644 ${DESTDIR}${MANDIR}/man1/${NAME}.1 + uninstall: @echo removing executable file from ${DESTDIR}${BINDIR} @rm -f ${DESTDIR}${BINDIR}/${NAME} @echo removing manual page from ${DESTDIR}${MANDIR}/man1 @rm -f ${DESTDIR}${MANDIR}/man1/${NAME}.1 + clean: - @echo clean unneeded + @echo removing generated files + @rm -f ChangeLog -distclean: clean - @rm -f ${NAME}-*.tar.gz ChangeLog -debclean: distclean - @cd Packages/${NV}/ ; debuild clean ; - -.PHONY: all dist deb changelog clean distclean debclean build install uninstall +.PHONY: all dist changelog clean install uninstall diff -r 3ce5429cd219 -r cb1f0dda49e7 genwebgallery.1 --- a/genwebgallery.1 Sat May 10 21:48:21 2008 +0200 +++ b/genwebgallery.1 Mon May 12 11:54:04 2008 +0200 @@ -1,4 +1,4 @@ -.TH GENWEBGALLERY 1 "genwebgallery\-VERSION" "2007\-11\-21" "genwebgallery" +.TH GENWEBGALLERY 1 "genwebgallery\-0.5" "2007\-11\-21" "genwebgallery" .SH NAME genwebgallery @@ -77,4 +77,4 @@ .SH AUTHOR genwebgallery and this man page was written by markus schnalke .PP -Website: http://prog.marmaro.de +Website: http://prog.marmaro.de/genwebgallery