# pt -- the MacPorts port tool" # Copyright (c)2007 Alexander Barton, alex@barton.de # # 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. # Please read the file COPYING, README and AUTHORS for more information. # # $Id$ # all: pt pt: chmod 755 bin/pt distclean: clean find . -name '.DS_Store' -exec rm -f {} ";" clean: check: all @echo "Checking \"pt\" script ... \c" @bin/pt --version >/dev/null 2>&1; if [ $$? -eq 0 ]; then \ echo "OK."; else echo "Failed!"; exit 1; fi install: all install -d -o root -g wheel -m 755 /usr/local/bin install -v -o root -g wheel -m 755 bin/pt /usr/local/bin [ -e /etc/pt.conf ] || install -v -o root -g wheel -m 644 etc/pt.conf /etc dist: distclean name=`basename $$PWD`; \ version=`grep "VERSION=" bin/pt | cut -d'"' -f2`; \ ditto --norsrc . "/tmp/$$$$/$$name-$$version"; \ tar cvzf "$$name-$$version.tar.gz" -C "/tmp/$$$$" \ --exclude '*.tar*' --exclude '.git' "$$name-$$version"; \ rm -rf "/tmp/$$$$" distcheck: distclean check dist .PHONY: all install # -eof-