Annotation of scripts/pgallery/src/Makefile, revision 1.8

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