Manual Patch: Automate Figure Creation

Jeffrey oldham at mail.codesourcery.com
Tue Mar 5 02:04:53 UTC 2002


2002-Mar-04  Jeffrey D. Oldham  <oldham at codesourcery.com>

This patch automates creation of figures and rearranges the corresponding
Makefile.
	
	* figures/Makefile (UML_SOURCES): Add other UML source files.
	(SOURCES): Reformat definition.
	(OTHER_DIAGRAMS): New definition listing non-UML diagrams.
	(all): Use OTHER_DIAGRAMS.

Applied to mainline.

Thanks,
Jeffrey D. Oldham
oldham at codesourcery.com
-------------- next part --------------
Index: figures/Makefile
===================================================================
RCS file: /home/pooma/Repository/r2/docs/manual/figures/Makefile,v
retrieving revision 1.4
diff -c -p -r1.4 Makefile
*** figures/Makefile	2002/03/04 23:48:09	1.4
--- figures/Makefile	2002/03/05 01:41:12
*************** EPSTOPNG=	/home/oldham/bin/peps
*** 22,31 ****
  # MetaPost macro definitions used in multiple files.
  MACRO_SOURCES= box-macros.mp grid-macros.mp uml.mp
  # These MetaPost files describe the UML class diagrams.
! UML_SOURCES= explanation-uml.mp
  # These MetaPost files describe the figures.
! SOURCES= concepts.mp data-parallel.mp distributed.mp doof2d.mp introduction.mp \
! 	$(UML_SOURCES)
  # MetaPost can produce multiple files per input file.  These multiple
  # files have names %.[0-9]+.  Since make does not deal well with
  # producing an indeterminate number of files from the same rule, we
--- 22,34 ----
  # MetaPost macro definitions used in multiple files.
  MACRO_SOURCES= box-macros.mp grid-macros.mp uml.mp
  # These MetaPost files describe the UML class diagrams.
! UML_SOURCES= array-uml.mp distributed-uml.mp domain-uml.mp \
! 	engine-uml.mp explanation-uml.mp field-uml.mp \
! 	math-objs-uml.mp
! 
  # These MetaPost files describe the figures.
! SOURCES= concepts.mp data-parallel.mp distributed.mp doof2d.mp \
! 	introduction.mp $(UML_SOURCES)
  # MetaPost can produce multiple files per input file.  These multiple
  # files have names %.[0-9]+.  Since make does not deal well with
  # producing an indeterminate number of files from the same rule, we
*************** UML_DIAGRAMS= explanation-uml-1.png \
*** 53,68 ****
  	      math-objs-uml-1.png math-objs-uml-10.png \
  	      math-objs-uml-11.png math-objs-uml-2.png math-objs-uml-3.png \
  	      math-objs-uml-4.png
  
  # Create all the EPS and PNG files.  The 'mproof-all' target creates
  # the EPS files.  This should happen before trying to create the PNG
  # files, but this rule may not guarantee this ordering.
! all: mproof-all \
! 	concepts-101.png concepts-111.png data-parallel-101.png \
! 	data-parallel-212.png distributed-101.png \
! 	doof2d-201.png doof2d-202.png doof2d-203.png \
! 	doof2d-210.png doof2d-211.png introduction-101.png \
! 	$(UML_DIAGRAMS)
  
  mproof-all: $(RESULTS)
  
--- 56,70 ----
  	      math-objs-uml-1.png math-objs-uml-10.png \
  	      math-objs-uml-11.png math-objs-uml-2.png math-objs-uml-3.png \
  	      math-objs-uml-4.png
+ OTHER_DIAGRAMS= concepts-101.png concepts-111.png data-parallel-101.png \
+ 	data-parallel-212.png distributed-101.png \
+ 	doof2d-201.png doof2d-202.png doof2d-203.png \
+ 	doof2d-210.png doof2d-211.png introduction-101.png
  
  # Create all the EPS and PNG files.  The 'mproof-all' target creates
  # the EPS files.  This should happen before trying to create the PNG
  # files, but this rule may not guarantee this ordering.
! all: mproof-all	$(OTHER_DIAGRAMS) $(UML_DIAGRAMS)
  
  mproof-all: $(RESULTS)
  


More information about the pooma-dev mailing list