From a77ab2f8202c2e661f9bf55561149d18a0d04989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Teichgr=C3=A4ber?= Date: Fri, 3 Dec 2010 23:27:21 +0100 Subject: [PATCH] Makefile: add target `update-peg' --- Makefile | 6 ++++++ README.markdown | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/Makefile b/Makefile index e48f07e..6395f84 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,7 @@ VCS = git GITHUB = git://github.com # also, if hggit extension is available: # VCS = hg +VCS-PULLFLAGS = # @@ -56,6 +57,11 @@ $(LEG): peg: $(VCS) clone $(GITHUB)/knieriem/peg +update-peg: + cd peg && $(VCS) pull $(VCS-PULLFLAGS) + cd peg/leg && make clean + + # # access to original C source files # diff --git a/README.markdown b/README.markdown index bedaa47..c206dfb 100644 --- a/README.markdown +++ b/README.markdown @@ -46,6 +46,10 @@ finish the installation: See doc.go for an example how to use the package. +To update [knieriem/peg][] run `gomake update-peg`. This +will fetch available revisions from github, and remove the +old *leg* binary. + To create the command line program *markdown,* run cd $GOROOT/src/pkg/github.com/knieriem/markdown