marketplace-2014/scribblings/Makefile

30 lines
608 B
Makefile
Raw Normal View History

2013-05-14 16:43:42 +00:00
all: out
2013-05-20 20:45:54 +00:00
pages:
@(git branch -v | grep -q gh-pages || (echo local gh-pages branch missing; false))
@echo
@git branch -av | grep gh-pages
@echo
@(echo 'Is the branch up to date? Press enter to continue.'; read dummy)
2013-05-20 20:45:54 +00:00
git clone -b gh-pages ../.. pages
publish: out pages
2013-05-20 22:13:43 +00:00
rm -rf pages/*
2013-05-20 20:45:54 +00:00
cp -r out/marketplace/. pages/.
(cd pages; git add -A)
-(cd pages; git commit -m "Update $$(date +%Y%m%d%H%M%S)")
(cd pages; git push)
rm -rf pages
2013-05-14 16:43:42 +00:00
out:
raco scribble \
--htmls \
--dest out \
++main-xref-in \
--redirect-main http://docs.racket-lang.org/ \
\
marketplace.scrbl
clean:
2013-05-20 20:45:54 +00:00
rm -rf out