chiark / gitweb /
tg.sh: it's info/attributes not info/gitattributes
[topgit.git] / Makefile
index 238d07d6a84e91e2c00605cff55afc534b6b11bc..cf842d686a1ff7db9f15a330ac5e565a29940824 100644 (file)
--- 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)