Makefile
changeset 10 59cd8ce44290
parent 5 3a8bb95e1428
child 11 2fdc6206e792
--- 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: