# # servertools.macosx Makefile # Copyright (c)2008,2009 Barton IT-Consulting, Alexander Barton # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. # See the GNU General Public License for more details. # TOOLS = odbackup PREFIX = /usr/local all: $(TOOLS) clean: distclean: clean maintainer-clean: distclean install: all install-odbackup check: all 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)