X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=Makefile;h=2c627afbaab085c72f58257399edca8da4d77fb5;hb=5062572c1d8e2d298e518bc963f6cf3794449819;hp=af4639915031e7a8a0c95c5caf1db206e93401ad;hpb=1ec1593458af509437008522be51cbe15c309d45;p=topgit.git diff --git a/Makefile b/Makefile index af46399..2c627af 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ sharedir = $(prefix)/share/topgit hooksdir = $(cmddir)/hooks -commands_in = tg-create.sh tg-delete.sh tg-export.sh tg-info.sh tg-patch.sh tg-summary.sh tg-update.sh +commands_in = $(wildcard tg-*.sh) hooks_in = hooks/pre-commit.sh commands_out = $(patsubst %.sh,%,$(commands_in)) @@ -14,7 +14,7 @@ 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' \