version 1.4, 2012/09/11 16:24:46
|
version 1.8, 2013/04/03 10:16:39
|
Line 1
|
Line 1
|
# |
# |
# THE BEER-WARE LICENSE 2012 | # THE BEER-WARE LICENSE 2012,13 |
| # |
# <as@paefchen.net> wrote this file. As long as you retain this notice you |
# <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 |
# 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 |
# this stuff is worth it, you can buy me a beer in return Aron Schlesinger |
# |
# |
# $Paefchen: scripts/pgallery/src/Makefile,v 1.3 2012/08/31 12:33:07 as Exp $ | # $Paefchen: scripts/pgallery/src/Makefile,v 1.7 2013/04/03 08:31:07 as Exp $ |
# |
# |
|
|
BIN= pgallery.sh |
BIN= pgallery.sh |
SRC= ${BIN} |
SRC= ${BIN} |
SRC+= pgalleryindex.sh |
SRC+= pgalleryindex.sh |
|
SRC+= pgallerycron.sh |
LIB= libpgallery.sh |
LIB= libpgallery.sh |
CONF= pgallery.conf |
CONF= pgallery.conf |
NAME!= cp ${LIB} ${LIB:R} && sh ${BIN} -v && rm ${LIB:R} | NAME!= sh ${BIN} -v |
DISTNAME= ${NAME}.tar.gz |
DISTNAME= ${NAME}.tar.gz |
|
|
distfile: ${DISTNAME} |
distfile: ${DISTNAME} |
Line 21 test::
|
Line 23 test::
|
@echo ${LIB:R} |
@echo ${LIB:R} |
|
|
clean: |
clean: |
rm -f ${DISTNAME} | rm -fv ${DISTNAME} |
rm -fr ${NAME} | rm -frv ${NAME} |
|
|
${DISTNAME}: ${SRC} ${CONF} ${LIB} |
${DISTNAME}: ${SRC} ${CONF} ${LIB} |
@echo "==> create ${DISTNAME}" |
@echo "==> create ${DISTNAME}" |
mkdir ${NAME} | mkdir -vp ${NAME}/bin ${NAME}/lib ${NAME}/etc |
cp ${SRC} ${LIB} ${CONF} ${NAME} | cp -v ${SRC} ${NAME}/bin |
tar cvzf ${DISTNAME} ${NAME} | cp -v ${LIB} ${NAME}/lib |
rm -r ${NAME} | cp -v ${CONF} ${NAME}/etc |
| tar -cvzf ${DISTNAME} ${NAME} |
| rm -vr ${NAME} |
@echo "==> ready ${DISTNAME}" |
@echo "==> ready ${DISTNAME}" |