Annotation of scripts/pgallery/src/Makefile, revision 1.5
1.1 as 1: #
2: # THE BEER-WARE LICENSE 2012
3: # <as@paefchen.net> wrote this file. As long as you retain this notice you
4: # can do whatever you want with this stuff. If we meet some day, and you think
5: # this stuff is worth it, you can buy me a beer in return Aron Schlesinger
6: #
1.5 ! as 7: # $Paefchen: scripts/pgallery/src/Makefile,v 1.4 2012/09/11 16:24:46 as Exp $
1.1 as 8: #
9:
1.4 as 10: BIN= pgallery.sh
11: SRC= ${BIN}
12: SRC+= pgalleryindex.sh
1.3 as 13: LIB= libpgallery.sh
1.2 as 14: CONF= pgallery.conf
1.5 ! as 15: NAME!= sh ${BIN} -v
1.1 as 16: DISTNAME= ${NAME}.tar.gz
17:
18: distfile: ${DISTNAME}
19:
1.4 as 20: test::
21: @echo ${LIB:R}
22:
1.1 as 23: clean:
24: rm -f ${DISTNAME}
25: rm -fr ${NAME}
26:
1.4 as 27: ${DISTNAME}: ${SRC} ${CONF} ${LIB}
1.3 as 28: @echo "==> create ${DISTNAME}"
1.1 as 29: mkdir ${NAME}
1.3 as 30: cp ${SRC} ${LIB} ${CONF} ${NAME}
1.1 as 31: tar cvzf ${DISTNAME} ${NAME}
32: rm -r ${NAME}
1.3 as 33: @echo "==> ready ${DISTNAME}"