check for existing packages

destdir default value



git-svn-id: https://callirhoe.googlecode.com/svn/branches/phantome@231 81c8bb96-aa45-f2e2-0eef-c4fa4a15c6df
This commit is contained in:
geortz@gmail.com 2014-11-06 12:57:39 +00:00
parent 5ad584249e
commit 7cd1161aef
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
DESTDIR=/usr DESTDIR=/usr/local
all: all:
cd scripts && ./make_pkg cd scripts && ./make_pkg
@ -11,3 +11,6 @@ install-package:
install -m755 callirhoe $(DESTDIR)/bin/callirhoe install -m755 callirhoe $(DESTDIR)/bin/callirhoe
install -m755 calmagick $(DESTDIR)/bin/calmagick install -m755 calmagick $(DESTDIR)/bin/calmagick
install -m644 holidays/* $(DESTDIR)/share/callirhoe/holidays/ install -m644 holidays/* $(DESTDIR)/share/callirhoe/holidays/
clean:
rm -f callirhoe calmagick

View File

@ -38,5 +38,5 @@ create_calmagick_package() {
set -e set -e
cd .. cd ..
create_callirhoe_package [[ -x callirhoe ]] && echo "callirhoe package seems to exist, skipping; rm 'calliroe' to recreate" || create_callirhoe_package
create_calmagick_package [[ -x calmagick ]] && echo "calmagick package seems to exist, skipping; rm 'calmagick' to recreate" || create_calmagick_package