Changeset f85de47 for doc/theses/mike_brooks_MMath/Makefile
- Timestamp:
- Apr 25, 2025, 4:03:53 AM (6 months ago)
- Branches:
- master
- Children:
- 65bd3c2
- Parents:
- b195498
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/Makefile
rb195498 rf85de47 2 2 3 3 Build = build 4 5 Benchmarks = benchmarks 4 6 Pictures = pictures 7 Plots = plots 5 8 Programs = programs 6 9 … … 11 14 PicSRC = ${notdir ${wildcard ${Pictures}/*.png}} ${notdir ${wildcard ${Pictures}/*.fig}} 12 15 PicSRC := ${PicSRC:.fig=.pdf} # substitute ".fig" with ".pdf" 13 GraphSRC = ${notdir ${wildcard ${Pictures}/*.dat}} 14 GraphSRC := ${GraphSRC:.dat=.pdf} # substitute ".dat" with ".pdf" 16 GraphSRC_OLD = ${notdir ${wildcard ${Pictures}/*.dat}} 17 GraphSRC_OLD := ${GraphSRC_OLD:.dat=.pdf} # substitute ".dat" with ".pdf" 18 PlotINPUTS = ${wildcard ${Plots}/*.gp} ${wildcard ${Plots}/*.py} 19 PlotINPUTS := ${addsuffix .INPUTS,${PlotINPUTS}} 20 PlotSRC = ${notdir ${wildcard ${Plots}/*.gp}} 21 PlotSRC := ${addprefix ${Build}/plot-,${PlotSRC:.gp=.pdf}} # substitute ".gp" with ".pdf" 15 22 DemoPgmSRC = ${notdir ${wildcard ${Programs}/*-demo.cfa}} 16 23 PgmSRC = ${notdir ${wildcard ${Programs}/*}} … … 42 49 # Rules and Recipes 43 50 44 .PHONY : all clean 51 .PHONY : all clean # not file names 45 52 .SECONDARY: 46 53 #.PRECIOUS : ${Build}/% # don't delete intermediates … … 54 61 # File Dependencies 55 62 56 ${DOCUMENT}: ${TeXSRC} $(RunPgmOut) ${DemoPgmOut} ${GraphSRC } ${PicSRC} ${BibSRC} ${BibRep}/pl.bib ${LaTMac}/common.tex Makefile | ${Build}63 ${DOCUMENT}: ${TeXSRC} $(RunPgmOut) ${DemoPgmOut} ${GraphSRC_OLD} ${PlotSRC} ${PicSRC} ${BibSRC} ${BibRep}/pl.bib ${LaTMac}/common.tex Makefile | ${Build} 57 64 echo ${PicSRC} 58 echo ${GraphSRC }65 echo ${GraphSRC_OLD} 59 66 ${LaTeX} ${BASE} 60 67 ${BibTeX} ${Build}/${BASE} … … 87 94 $< > $@ 88 95 89 string-graph-peq-cppemu.pdf: string-graph-peq-cppemu.dat plot-peq-cppemu.gp | ${Build}90 gnuplot plot-peq-cppemu.gp91 92 96 string-graph-peq-sharing.pdf: string-graph-peq-sharing.dat plot-peq-sharing.gp | ${Build} 93 97 gnuplot plot-peq-sharing.gp … … 105 109 fig2dev -L pdf $< > ${Build}/$@ 106 110 111 -include $(Plots)/string-peq-cppemu.d 112 113 ${Build}/plot-%.dat: ${Plots}/%.py ${Plots}/%.py.INPUTS | ${Build} 114 echo ${PlotINPUTS} 115 python3 $< > $@ 116 117 ${Build}/plot-%.pdf: ${Plots}/%.gp ${Plots}/%.gp.INPUTS | ${Build} 118 gnuplot $< 119 107 120 #-include ${Build}/*.d
Note:
See TracChangeset
for help on using the changeset viewer.