X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=Makefile;h=cf842d686a1ff7db9f15a330ac5e565a29940824;hb=b9f820b19ba5de11fba93227e286f1d0ddb09d52;hp=238d07d6a84e91e2c00605cff55afc534b6b11bc;hpb=db4bc100e4afd0e405443f5bab4a242b989a6a64;p=topgit.git diff --git a/Makefile b/Makefile index 238d07d..cf842d6 100644 --- a/Makefile +++ b/Makefile @@ -26,16 +26,19 @@ tg $(commands_out) $(hooks_out): % : %.sh mv $@+ $@ $(help_out): README - ./create-help.sh `echo $@ | sed -e 's/tg-//' -e 's/\.txt//'` + @CMD=`echo $@ | sed -e 's/tg-//' -e 's/\.txt//'` && \ + echo '[HELP]' $$CMD && \ + ./create-help.sh $$CMD install:: all + install -d -m 755 "$(bindir)" install tg "$(bindir)" install -d -m 755 "$(cmddir)" install $(commands_out) "$(cmddir)" install -d -m 755 "$(hooksdir)" install $(hooks_out) "$(hooksdir)" install -d -m 755 "$(sharedir)" - install $(help_out) "$(sharedir)" + install -m 644 $(help_out) "$(sharedir)" clean:: rm -f tg $(commands_out) $(hooks_out) $(help_out)