X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=Makefile;fp=Makefile;h=31cc98e6fecdc1cec803f8c5744eb9b324d5b4b0;hb=ed5f8376b25da3793b40ce660f3ab8eca9f0cb7f;hp=835811ed048c967185b227b68a77fee422925f08;hpb=5aa8cf9d4fba8b6dbbd7878eb78b2600e3736b9a;p=topgit.git diff --git a/Makefile b/Makefile index 835811e..31cc98e 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,16 @@ -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)