diff --git a/Makefile b/Makefile index 00d4eea..635a8d1 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -DESTDIR=/usr +DESTDIR=/usr/local all: cd scripts && ./make_pkg @@ -11,3 +11,6 @@ install-package: install -m755 callirhoe $(DESTDIR)/bin/callirhoe install -m755 calmagick $(DESTDIR)/bin/calmagick install -m644 holidays/* $(DESTDIR)/share/callirhoe/holidays/ + +clean: + rm -f callirhoe calmagick diff --git a/scripts/make_pkg b/scripts/make_pkg index c62a89a..3e7b5b9 100755 --- a/scripts/make_pkg +++ b/scripts/make_pkg @@ -38,5 +38,5 @@ create_calmagick_package() { set -e cd .. -create_callirhoe_package -create_calmagick_package +[[ -x callirhoe ]] && echo "callirhoe package seems to exist, skipping; rm 'calliroe' to recreate" || create_callirhoe_package +[[ -x calmagick ]] && echo "calmagick package seems to exist, skipping; rm 'calmagick' to recreate" || create_calmagick_package