From afe53546e78e2d4c06a02b9711aad0fa8bd60061 Mon Sep 17 00:00:00 2001 From: "Paul W. Frields" Date: Mon, 13 Dec 2010 14:23:45 -0500 Subject: Add some starter rules --- Makefile.custom | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 -- cgit