git.mkを追加
authorj8takagi <j8takagi@nifty.com>
Wed, 30 Jan 2013 11:57:16 +0000 (20:57 +0900)
committerj8takagi <j8takagi@nifty.com>
Wed, 30 Jan 2013 11:57:16 +0000 (20:57 +0900)
Makefile
git.mk [new file with mode: 0644]

index 657a0e5..0e99818 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,3 +18,5 @@ clean:
 
 %.elc: %.el
        $(COMPILE.el) $<
+
+include git.mk
diff --git a/git.mk b/git.mk
new file mode 100644 (file)
index 0000000..4065935
--- /dev/null
+++ b/git.mk
@@ -0,0 +1,14 @@
+GIT := git
+
+REPO := www.j8takagi.net:/home/git
+
+.PHONY: gitorigin gitpush gitorigin-clean
+
+gitpush:
+       $(GIT) push --set-upstream origin master
+
+gitorigin:
+       $(GIT) remote add origin $(REPO)/$(notdir $(CURDIR)).git
+
+gitorigin-clean:
+       $(GIT) remote remove origin