--- a/Makefile Fri Aug 05 15:29:52 2005 +0000
+++ b/Makefile Fri Aug 05 21:19:04 2005 +0000
@@ -10,21 +10,27 @@
prefix = $(stowdir)/$(p)
bindir = $(prefix)/bin
-.PHONY: all install uninstall
+.PHONY: all install clean uninstall
-all:
- @echo "Nothing. Just install :)"
+all: .ok.$(BIN)
+ @test -x $(BIN) || chmod +x $(BIN)
install: $(BIN)
install -d $(bindir)
install -m 0755 $(BIN) $(bindir)/
stow -d $(stowdir) -vR $(p)
+clean:
+ @-rm -fv .ok.*
+
uninstall:
stow -d $(stowdir) -vD $(p)
rm -rf $(stowdir)/$(p)
+.ok.%: %
+ @perl -c $<
+ @touch $@
# vim:sts=4 sw=4 aw ai sm: