[Assorted-commits] SF.net SVN: assorted: [299] scala-commons/trunk/src/Makefile
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-02-03 08:40:40
|
Revision: 299 http://assorted.svn.sourceforge.net/assorted/?rev=299&view=rev Author: yangzhang Date: 2008-02-03 00:40:45 -0800 (Sun, 03 Feb 2008) Log Message: ----------- added web, publish to makefile Modified Paths: -------------- scala-commons/trunk/src/Makefile Modified: scala-commons/trunk/src/Makefile =================================================================== --- scala-commons/trunk/src/Makefile 2008-02-03 08:40:16 UTC (rev 298) +++ scala-commons/trunk/src/Makefile 2008-02-03 08:40:45 UTC (rev 299) @@ -1,23 +1,38 @@ DOCDIR := doc OUTDIR := out +WEBDIR := web JAR := $(OUTDIR)/scala-commons.jar SCALAC := fsc SRCS := $(wildcard commons/*.scala) -all: $(JAR) +all: jar +jar: $(JAR) + $(JAR): $(SRCS) mkdir -p $(OUTDIR) $(SCALAC) -d $(OUTDIR) $^ jar cf $(JAR) -C $(OUTDIR) commons/ +web: $(WEBDIR)/index.html + +$(WEBDIR)/index.html: ../README + mkdir -p $(WEBDIR) + # pandoc -s -S --tab-stop=2 -c main.css -H header.html -A footer.html -o $(WEBDIR)/index.html ../README + pandoc -s -S --tab-stop=2 -c ../main.css -o $(WEBDIR)/index.html ../README + doc: $(DOCDIR)/index.html $(DOCDIR)/index.html: $(SRCS) mkdir -p $(DOCDIR) - scaladoc -d $(DOCDIR) $^ + scaladoc -d $(DOCDIR) -linksource $^ +publish: doc jar web + cp -r $(JAR) $(DOCDIR) $(WEBDIR) + ssh shell-sf 'rm -rf assorted/htdocs/scala-commons/' + scp -r -o CompressionLevel=9 $(WEBDIR) shell-sf:assorted/htdocs/scala-commons + clean: - rm -rf $(OUTDIR) $(DOCDIR) + rm -rf $(OUTDIR) $(DOCDIR) $(WEBDIR) -.PHONY: clean +.PHONY: clean doc publish jar web This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |