File:  [Paefchen] / scripts / pgallery / src / Makefile
Revision 1.8: download - view: text, annotated - select for diffs - revision graph
Wed Apr 3 10:16:39 2013 UTC (11 years, 7 months ago) by as
Branches: MAIN
CVS tags: HEAD
make clean auch verbose

#
# THE BEER-WARE LICENSE 2012,13
#
# <as@paefchen.net> wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return Aron Schlesinger
#
# $Paefchen: scripts/pgallery/src/Makefile,v 1.8 2013/04/03 10:16:39 as Exp $
#

BIN=		pgallery.sh
SRC=		${BIN}
SRC+=		pgalleryindex.sh
SRC+=		pgallerycron.sh
LIB=		libpgallery.sh
CONF=		pgallery.conf
NAME!=		sh ${BIN} -v
DISTNAME=	${NAME}.tar.gz

distfile: ${DISTNAME}

test::
	@echo ${LIB:R}

clean:
	rm -fv ${DISTNAME}
	rm -frv ${NAME}

${DISTNAME}: ${SRC} ${CONF} ${LIB}
	@echo "==> create ${DISTNAME}"
	mkdir -vp ${NAME}/bin ${NAME}/lib ${NAME}/etc
	cp -v ${SRC} ${NAME}/bin
	cp -v ${LIB} ${NAME}/lib
	cp -v ${CONF} ${NAME}/etc
	tar -cvzf ${DISTNAME} ${NAME}
	rm -vr ${NAME}
	@echo "==> ready ${DISTNAME}"