[complement-svn] SF.net SVN: complement: [1804] trunk/complement/explore/Makefiles
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2008-01-17 06:59:33
|
Revision: 1804 http://complement.svn.sourceforge.net/complement/?rev=1804&view=rev Author: complement Date: 2008-01-16 22:59:31 -0800 (Wed, 16 Jan 2008) Log Message: ----------- rules to generate mps from mp, that was made from gnuplot. Modified Paths: -------------- trunk/complement/explore/Makefiles/ChangeLog trunk/complement/explore/Makefiles/gmake/topdoc.mak Modified: trunk/complement/explore/Makefiles/ChangeLog =================================================================== --- trunk/complement/explore/Makefiles/ChangeLog 2008-01-16 22:12:50 UTC (rev 1803) +++ trunk/complement/explore/Makefiles/ChangeLog 2008-01-17 06:59:31 UTC (rev 1804) @@ -1,3 +1,8 @@ +2008-01-17 Petr Ovtchenkov <pt...@is...> + + * gmake/topdoc.mak: rules to generate mps from mp, that was made + from gnuplot. + 2008-01-11 Petr Ovtchenkov <pt...@is...> * gmake/gcc.mak, gmake/CC.mak, gmake/aCC.mak: fix _FORCE_CXX macro Modified: trunk/complement/explore/Makefiles/gmake/topdoc.mak =================================================================== --- trunk/complement/explore/Makefiles/gmake/topdoc.mak 2008-01-16 22:12:50 UTC (rev 1803) +++ trunk/complement/explore/Makefiles/gmake/topdoc.mak 2008-01-17 06:59:31 UTC (rev 1804) @@ -1,4 +1,4 @@ -# Time-stamp: <08/01/08 15:22:06 ptr> +# Time-stamp: <08/01/17 09:39:54 ptr> # # Copyright (c) 2007,2008 # Petr Ovtchenkov @@ -63,7 +63,7 @@ $(foreach fig,$(PDFNAMES),$(eval $(call dep_mp,$(fig)))) define pdf_ -$(1).pdf: $($(1)_SRC_TEX) $($(1)_MPS) $($(1)_EXTRA) +$(1).pdf: $($(1)_SRC_TEX) $($(1)_MPS) $($(1)_MP_MPS) $($(1)_EXTRA) pdflatex $$< endef @@ -82,28 +82,28 @@ endef define dep_mps -#TMP1 := $$(basename $$(notdir $(1))).mps -#$(2) := $($(2)) $${TMP1} -#ALLMP := $$(ALLMP) $(1) +$(1)_MP_MPS := $(patsubst %.mp,%.mps,$(notdir ${$(1)_SRC_MP})) +ALLMP += ${$(1)_SRC_MP} endef -#define rule_mps -#TMP2 := $$(OUTPUT_DIR)/$$(basename $$(notdir $(1))).0 -#$$(TMP2): $(1) -# $$(chdirs) -# sed -i -e 's/beginfig(.)/beginfig(0)/' $$< -# (cd $${OUTPUT_DIR}; mpost --tex=latex ../`basename $$<`) -# rm -f $(1).mpx -# -#TMP1 := $$(basename $$(notdir $(1))).mps -#$$(TMP1): $$(TMP2) -# ln -sf $$< $$@ -#endef +$(foreach mp,$(PDFNAMES),$(eval $(call dep_mps,$(mp)))) +define rule_mps +TMP2 := $$(OUTPUT_DIR)/$$(basename $$(notdir $(1))).0 +$$(TMP2): $(1) + sed -i -e 's/beginfig(.)/beginfig(0)/' $$< + (cd $${OUTPUT_DIR}; mpost --tex=latex ../`basename $$<`) + rm -f $(1)x + +TMP1 := $$(basename $$(notdir $(1))).mps +$$(TMP1): $$(TMP2) + ln -sf $$< $$@ +endef + $(foreach pdf,$(PDFNAMES),$(eval $(call pdf_,$(pdf)))) ALLFIG := $(sort $(ALLFIG)) -# ALLMP := $(sort $(ALLMP)) +ALLMP := $(sort $(ALLMP)) $(foreach fig,$(ALLFIG),$(eval $(call rule_mp,$(fig)))) -# $(foreach mp,$(ALLMP),$(eval $(call rule_mps,$(mp)))) +$(foreach mp,$(ALLMP),$(eval $(call rule_mps,$(mp)))) .PHONY: ${PHONY} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |