/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
# 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 :
--- /dev/null
+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 "$</" "$@/"