BINDIR = $(HOME)/bin TARGETS = mkheader.py isprime multi-send-key perm.py git2svn-sync svn2git-sync rename-patch all: $(TARGETS) @echo "Nothing to be done" install: @echo "Installing the following scripts to $(BINDIR)" @echo " $(TARGETS)" @mkdir -p $(BINDIR) @install -m755 -t $(BINDIR) $(TARGETS) uninstall: @echo "Uninstalling the following scripts from $(BINDIR):" @echo " $(TARGETS)" @rmdir --ignore-fail-on-non-empty $(BINDIR) @for s in $(TARGETS); do rm -f "$(BINDIR)/$${s}"; done clean: @rm -f *.pyc