From 27691626bcac569ecf8b99a6aab67ed9dd1e2148 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 3 Nov 2010 15:02:28 -0400 Subject: [PATCH] Add Hooke/Makefile for documentation generation. --- .gitignore | 3 +++ Makefile | 4 ++-- posts/Hooke/Makefile | 29 +++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 posts/Hooke/Makefile diff --git a/.gitignore b/.gitignore index 2f0013d..dda4767 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,9 @@ /recentchanges # built by Makefiles inside posts/ +/posts/Hooke/README.rst +/posts/Hooke/hooke +/posts/Hooke/html /posts/problempack/problempack/ /posts/problempack/probs.pdf /posts/problempack/sols.pdf diff --git a/Makefile b/Makefile index 69e4efa..2e04d93 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # Build everything necessary to compile the wiki. -SUBDIRS = posts/problempack posts/rel-vcs posts/sawsim posts/yacc2dot \ - posts/Xmodmap posts/XSLT/chapter posts/XSLT/code +SUBDIRS = posts/Hooke posts/problempack posts/rel-vcs posts/sawsim \ + posts/yacc2dot posts/Xmodmap posts/XSLT/chapter posts/XSLT/code TARGETS = all clean all : diff --git a/posts/Hooke/Makefile b/posts/Hooke/Makefile new file mode 100644 index 0000000..deaa134 --- /dev/null +++ b/posts/Hooke/Makefile @@ -0,0 +1,29 @@ +REPO = http://www.physics.drexel.edu/~wking/code/hg/hooke/ +PACKAGE = hooke + +.PHONY : all checkout clean + +all : README.rst html + +clean : + rm -rf $(PACKAGE) README.rst html + +$(PACKAGE) : + hg clone $(REPO) $@ + +checkout : $(PACKAGE) + (cd $(PACKAGE) && hg pull && hg update wtk) + +README.rst : checkout + cp $(PACKAGE:%=%/README) $@ + +$(PACKAGE:%=%/hooke/version.py) : checkout + (cd $(PACKAGE) && ./update_copyright.py) + +.PHONY : $(PACKAGE:%=%/doc/build/html) +$(PACKAGE:%=%/doc/build/html) : $(PACKAGE:%=%/hooke/version.py) + (cd $(PACKAGE:%=%/doc) && scons) + +.PHONY : html +html : $(PACKAGE:%=%/doc/build/html) + rsync -avz "$