Ignore:
Timestamp:
Nov 15, 2024, 5:48:11 PM (5 weeks ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
e255902b
Parents:
2325b57
Message:

change how latex code generated from sharing-demo.cfa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mike_brooks_MMath/Makefile

    r2325b57 r489d3ba  
    1010TeXSRC = ${wildcard *.tex}
    1111PicSRC = ${notdir ${wildcard ${Pictures}/*.png}}
    12 DemoSRC = ${notdir ${wildcard ${Programs}/*-demo.cfa}}
     12DemoPgmSRC = ${notdir ${wildcard ${Programs}/*-demo.cfa}}
    1313PgmSRC = ${notdir ${wildcard ${Programs}/*}}
    1414RunPgmSRC = ${notdir ${wildcard ${Programs}/*.run.*}}
     
    2424BASE = ${basename ${DOCUMENT}}                  # remove suffix
    2525
    26 DemoTex = ${DemoSRC:%.cfa=${Build}/%.tex}
    2726RunPgmExe = ${addprefix ${Build}/,${basename ${basename ${RunPgmSRC}}}}
    2827RunPgmOut = ${RunPgmExe:%=%.out}
     28DemoPgmExe = ${addprefix ${Build}/,${basename ${basename ${DemoPgmSRC}}}}
     29DemoPgmOut = ${DemoPgmExe:%=%.out}
    2930
    3031# Commands
     
    3839# Rules and Recipes
    3940
    40 .PHONY : all fragments_ran clean                        # not file names
    41 .PRECIOUS : ${Build}/% ${Build}/%-demo      # don't delete intermediates
     41.PHONY : all clean                              # not file names
     42.SECONDARY:
     43#.PRECIOUS : ${Build}/%                         # don't delete intermediates
    4244.ONESHELL :
    4345
    44 all : fragments_ran ${DOCUMENT}
    45 
    46 fragments_ran : $(RunPgmOut)
     46all : ${DOCUMENT}
    4747
    4848clean :
     
    5151# File Dependencies
    5252
    53 %.pdf : ${TeXSRC} ${DemoTex} ${PicSRC} ${PgmSRC} ${BibSRC} ${BibRep}/pl.bib ${LaTMac}/common.tex Makefile | ${Build}
     53%.pdf : ${TeXSRC} $(RunPgmOut) ${DemoPgmOut} ${PicSRC} ${BibSRC} ${BibRep}/pl.bib ${LaTMac}/common.tex Makefile | ${Build}
    5454        ${LaTeX} ${BASE}
    5555        ${BibTeX} ${Build}/${BASE}
     
    6464        mkdir -p $@
    6565
    66 %-demo.tex: %-demo | ${Build}
    67         $< > $@
     66${Build}/%-demo: ${Programs}/%-demo.cfa | ${Build}
     67        ${CFA} $< -o $@
    6868
    69 ${Build}/%-demo: ${Programs}/%-demo.cfa | ${Build}
     69${Build}/%: ${Programs}/%-demo.cfa | ${Build}
    7070        ${CFA} $< -o $@
    7171
Note: See TracChangeset for help on using the changeset viewer.