diff options
| author | Paul C. Buetow (mars.fritz.box) <paul@buetow.org> | 2014-05-07 10:14:17 +0200 |
|---|---|---|
| committer | Paul C. Buetow (mars.fritz.box) <paul@buetow.org> | 2014-05-07 10:14:17 +0200 |
| commit | 4ca143713c90a020fa3a3864f3d7acbdfe7c42cf (patch) | |
| tree | 2f5295809caaeb547f1033e02971397d653933be /src | |
| parent | e2b02d5f773a6d0d3523ce5ea9c64605b9257a40 (diff) | |
add makemake
Diffstat (limited to 'src')
| -rwxr-xr-x | src/photoalbum.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/photoalbum.sh b/src/photoalbum.sh index 034a518..e467aeb 100755 --- a/src/photoalbum.sh +++ b/src/photoalbum.sh @@ -32,7 +32,7 @@ function init() { } function clean() { - echo "Not deleting ${INCOMING_DIR}" + echo "Not deleting ${INCOMING_DIR} but ${DIST_DIR}" [ -d "${DIST_DIR}" ] && rm -Rf "${DIST_DIR}" } @@ -184,6 +184,16 @@ function makedist() { done } +function makemake() { + [ ! -f ./photoalbumrc ] && cp /etc/default/photoalbum ./photoalbumrc + cat <<MAKEFILE > ./Makefile +all: + photoalbum all photoalbumrc +clean: + photoalbum clean photoalbumrc +MAKEFILE +} + source "${RC}" if [ -f ~/.photoalbumrc ]; then @@ -192,7 +202,6 @@ fi case "${ARG1}" in all) - clean init generate ;; @@ -208,6 +217,9 @@ case "${ARG1}" in version) echo "This is Photoalbum Version ${VERSION}" ;; + makemake) + makemake + ;; *) usage ;; |
