summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2010-12-13 14:23:45 -0500
committerPaul W. Frields <stickster@gmail.com>2010-12-13 14:23:45 -0500
commitafe53546e78e2d4c06a02b9711aad0fa8bd60061 (patch)
tree9782829727bb64072ca1f772150d7ebc3317204e
parent5b32f37e231f3e3f5db6295d4a0f97f2077713fe (diff)
downloadecs-git-test-afe53546e78e2d4c06a02b9711aad0fa8bd60061.tar.gz
ecs-git-test-afe53546e78e2d4c06a02b9711aad0fa8bd60061.tar.xz
ecs-git-test-afe53546e78e2d4c06a02b9711aad0fa8bd60061.zip
Add some starter rules
-rw-r--r--Makefile.custom19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile.custom b/Makefile.custom
index a81ecfa..bb80a80 100644
--- a/Makefile.custom
+++ b/Makefile.custom
@@ -50,3 +50,22 @@ calendar: clean all
/usr/bin/python format-weekly-calendar.py $$file > $$file.txt; \
done;
/usr/bin/gedit *csv.txt;
+
+# These are rules to work with an "upstream" git repo
+GITREPO_URL=file:///home/pfrields/fedora/projects/ecs-git-test/
+GITREPO_LOC=ecs-git-test
+
+.git:
+ git clone --no-hardlinks ${GITREPO_URL} ${GITREPO_LOC}
+
+pull-from-git: .git
+ git pull
+ mv ${GITREPO_LOC}/.git .
+ rm -rf ${GITREPO_LOC}
+
+# This needs work -- need to ignore all the work product stuff,
+# including .csv and other stuff created by other rules. That would
+# be easier if the common Makefile stuff actually listed them as the
+# contents of a make variable!
+diff-from-git: .git
+ git diff