[m-rev.] for review: put work in progress on web site

Simon Taylor stayl at cs.mu.OZ.AU
Wed Oct 23 16:27:31 AEST 2002


On 23-Oct-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> On 23-Oct-2002, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
> > 
> > Make the "work in progress" file appear on the web site.
> 
> I think that's a good idea, but I'd like to keep the WORK_IN_PROGRESS
> file in the distribution too, and in the same place as the NEWS file.
> 
> An Mmakefile rule such as
> 
> 	TEXT_TO_HTML = TERM=vt100 lynx -dump
> 
> 	WORK_IN_PROGRESS: compiler/notes/work_in_progress.html
> 		$(TEXT_TO_HTML) compiler/notes/work_in_progress.html \
> 			> WORK_IN_PROGRESS
> 
> (next to the rules for README and INSTALL, I guess)
> plus a couple of additional dependencies
> 
> 	tar: ... WORK_IN_PROGRESS
> 
> 	all: ... WORK_IN_PROGRESS
> 
> should do the trick, I think.

Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/Mmakefile,v
retrieving revision 1.90
diff -u -u -r1.90 Mmakefile
--- Mmakefile	20 Oct 2002 06:33:59 -0000	1.90
+++ Mmakefile	23 Oct 2002 06:17:25 -0000
@@ -47,6 +47,8 @@
 		MMAKE_DIR=../../scripts \
 		../../scripts/mmake $(MMAKEFLAGS)
 
+GENERATED_DOCS = README INSTALL WORK_IN_PROGRESS TODO
+
 #-----------------------------------------------------------------------------#
 
 # `mmake dep' ensures that the .dep files exist;
@@ -126,7 +128,7 @@
 #-----------------------------------------------------------------------------#
 
 .PHONY: all
-all: README INSTALL mercury-compiler.spec $(SUBDIRS)
+all: $(GENERATED_DOCS) mercury-compiler.spec $(SUBDIRS)
 
 .PHONY: util
 util: scripts
@@ -243,6 +245,14 @@
 INSTALL: .INSTALL.in VERSION
 	sed 's/@VERSION@/$(VERSION)/g' .INSTALL.in > INSTALL
 
+TEXT_TO_HTML = TERM=vt100 lynx -dump
+
+WORK_IN_PROGRESS: compiler/notes/work_in_progress.html
+	$(TEXT_TO_HTML) compiler/notes/work_in_progress.html > WORK_IN_PROGRESS
+
+TODO: compiler/notes/todo.html
+	$(TEXT_TO_HTML) compiler/notes/todo.html > TODO
+
 mercury-compiler.spec: .mercury-compiler.spec.in VERSION
 	version_with_underscores=`echo $(VERSION) | sed 's/-/_/g'`; \
 	maybe_beta=`case $(VERSION) in rotd*|*beta*) \
@@ -258,7 +268,7 @@
 # Generally you should do a `mmake realclean' before doing `mmake tar'.
 
 .PHONY: tar
-tar: README INSTALL
+tar: $(GENERATED_DOCS)
 	touch Mmake.params
 	cd util && mmake
 	+cd runtime && $(SUBDIR_MMAKE) cs $(RT_LIB_NAME).init
@@ -584,7 +594,7 @@
 realclean: realclean_subdirs realclean_local realclean_tests
 
 .PHONY: realclean_local
-realclean_local: realclean_config
+realclean_local: realclean_config realclean_docs
 
 .PHONY: realclean_subdirs
 realclean_subdirs: clean_subdirs
@@ -594,6 +604,10 @@
 		(cd $$dir; $(SUBDIR_MMAKE) realclean) \
 	done
 	+cd scripts; $(SUBDIR_MMAKE) realclean
+
+.PHONY: realclean_docs
+realclean_docs:
+	rm -f $(GENERATED_DOCS)
 
 .PHONY: realclean_config
 realclean_config:
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list