]> arthur.barton.de Git - servertools.macosx.git/blobdiff - Makefile
Log a note when unloading already configured launch daemon config
[servertools.macosx.git] / Makefile
index ed91e9a6e69d0826e62cda8bcdc03685685430ee..3f6dd64d4dab70ddb0621ed2e77a108422a18447 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,9 +12,9 @@
 # See the GNU General Public License for more details.
 #
 
-TOOLS = odbackup
+NAME = "servertools.macosx"
 
-PREFIX = /usr/local
+TOOLS = odbackup
 
 all: $(TOOLS)
 
@@ -24,23 +24,21 @@ distclean: clean
 
 maintainer-clean: distclean
 
-install: all install-odbackup
+install: all
+       @./install.sh $(TOOLS)
 
 check: all
 
 dist:
+       COPYFILE_DISABLE=true tar cvzf $(NAME)-`date +%Y%m%d`.tar.gz \
+        --exclude ".git*" --exclude "*.tar.gz" --exclude "*.tgz" \
+        --exclude "._*" --exclude "*~" --exclude "*.bak" \
+        -C .. `basename $$PWD`
+
+
+distcheck: check dist
 
 odbackup:
 
-install-odbackup:
-       mkdir -p $(PREFIX)/sbin
-       install -c -m 755 -o root -g wheel \
-        odbackup/odbackup $(PREFIX)/sbin
-       launchctl list de.maccc.odbackup >/dev/null 2>&1 \
-        && launchctl unload -w /Library/LaunchDaemons/de.maccc.odbackup.plist \
-        || true
-       install -c -m 644 -o root -g wheel \
-        odbackup/de.maccc.odbackup.plist /Library/LaunchDaemons
-       [ -x /usr/sbin/slapconfig ] \
-        && launchctl load -w /Library/LaunchDaemons/de.maccc.odbackup.plist \
-        || echo "\n *** 'slapconfig' not found, not enabling odbackup!\n"
+.PHONY: all clean distclean maintainer-clean install check dist distcheck \
+        $(TOOLS)