chiark / gitweb /
remove patch from build-stamp
[topgit.git] / Makefile
index 4aa48f4cb1b4786f7d8a96072879f722c6a5c742..31cc98e6fecdc1cec803f8c5744eb9b324d5b4b0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,20 +1,20 @@
-prefix = $(HOME)
-bindir = $(prefix)/bin
-cmddir = $(prefix)/share/topgit
-docdir = $(prefix)/share/doc/topgit
-hooksdir = $(cmddir)/hooks
+prefix ?= $(HOME)
+bindir := $(prefix)/bin
+cmddir := $(prefix)/share/topgit
+docdir := $(prefix)/share/doc/topgit
+hooksdir := $(cmddir)/hooks
 
 
-commands_in = $(wildcard tg-*.sh)
+commands_in := $(wildcard tg-*.sh)
 hooks_in = hooks/pre-commit.sh
 
-commands_out = $(patsubst %.sh,%,$(commands_in))
-hooks_out = $(patsubst %.sh,%,$(hooks_in))
-help_out = $(patsubst %.sh,%.txt,$(commands_in))
+commands_out := $(patsubst %.sh,%,$(commands_in))
+hooks_out := $(patsubst %.sh,%,$(hooks_in))
+help_out := $(patsubst %.sh,%.txt,$(commands_in))
 
 all::  tg $(commands_out) $(hooks_out) $(help_out)
 
-tg $(commands_out) $(hooks_out): % : %.sh
+tg $(commands_out) $(hooks_out): % : %.sh Makefile
        @echo "[SED] $@"
        @sed -e 's#@cmddir@#$(cmddir)#g;' \
                -e 's#@hooksdir@#$(hooksdir)#g' \