Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a Makefile for homebrew

  • Loading branch information...
commit 324e960dfdd10292f91d5f0af91cc057c2374d40 1 parent 27703d6
@orefalo authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 Makefile
View
27 Makefile
@@ -0,0 +1,27 @@
+prefix=/usr/local/g2
+
+# files that need mode 755
+CMDS_FILES=`ls cmds/*.sh`
+
+SETUPFILES =g2-config.sh
+SETUPFILES+=g2-install.sh
+
+# files that need mode 644
+SCRIPT_FILES =g2-completion.sh
+SCRIPT_FILES+=g2-prompt.conf
+SCRIPT_FILES+=g2-prompt.sh
+SCRIPT_FILES+=g2.sh
+
+all:
+ @echo "usage: make install"
+ @echo " make uninstall"
+
+install:
+ install -d -m 0755 $(prefix)/cmds
+ install -m 0755 $(CMDS_FILES) $(prefix)/cmds
+ install -m 0755 $(SETUPFILES) $(prefix)
+ install -m 0644 $(SCRIPT_FILES) $(prefix)
+
+#uninstall:
+# rm -rf $(prefix)
+
Please sign in to comment.
Something went wrong with that request. Please try again.