Changeset 5717495 for doc/theses/mike_brooks_MMath/Makefile
- Timestamp:
- Mar 17, 2023, 11:47:05 AM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 9d84a88
- Parents:
- 1fd3d85
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified doc/theses/mike_brooks_MMath/Makefile ¶
r1fd3d85 r5717495 8 8 PicSRC = ${notdir ${wildcard ${Pictures}/*.png}} 9 9 DemoSRC = ${notdir ${wildcard ${Programs}/*-demo.cfa}} 10 PgmSRC = ${notdir ${wildcard ${Programs}/*.cfa}} 10 PgmSRC = ${notdir ${wildcard ${Programs}/*}} 11 RunPgmSRC = ${notdir ${wildcard ${Programs}/*.run.*}} 11 12 BibSRC = ${wildcard *.bib} 12 13 … … 14 15 BibLIB = .:../../bibliography # common citation repository 15 16 16 MAKEFLAGS = --no-print-directory # --silent17 #MAKEFLAGS = --no-print-directory # --silent 17 18 VPATH = ${Build} ${Pictures} ${Programs} # extra search path for file names used in document 18 19 … … 20 21 BASE = ${basename ${DOCUMENT}} # remove suffix 21 22 23 DemoTex = ${DemoSRC:%.cfa=${Build}/%.tex} 24 RunPgmExe = ${addprefix ${Build}/,${basename ${basename ${RunPgmSRC}}}} 25 RunPgmOut = ${RunPgmExe:%=%.out} 26 22 27 # Commands 23 28 24 29 LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && pdflatex -halt-on-error -output-directory=${Build} 25 30 BibTeX = BIBINPUTS=${BibLIB} && export BIBINPUTS && bibtex 26 CFA = cfa 31 CFA = cfa -O0 -g 32 CC = gcc -O0 -g 33 CXX = g++-11 --std=c++20 -O0 -g 27 34 28 35 # Rules and Recipes 29 36 30 .PHONY : all clean # not file names 37 .PHONY : all fragments_ran clean # not file names 38 .PRECIOUS : ${Build}/% ${Build}/%-demo # don't delete intermediates 31 39 .ONESHELL : 32 40 33 all : ${DOCUMENT} 41 all : fragments_ran ${DOCUMENT} 42 43 fragments_ran : $(RunPgmOut) 34 44 35 45 clean : … … 38 48 # File Dependencies 39 49 40 %.pdf : ${TeXSRC} ${Demo SRC:%.cfa=%.tex} ${PicSRC} ${PgmSRC} ${BibSRC} Makefile | ${Build}50 %.pdf : ${TeXSRC} ${DemoTex} ${PicSRC} ${PgmSRC} ${BibSRC} Makefile | ${Build} 41 51 ${LaTeX} ${BASE} 42 52 ${BibTeX} ${Build}/${BASE} … … 52 62 53 63 %-demo.tex: %-demo | ${Build} 54 $ {Build}/$< > ${Build}/$@64 $< > $@ 55 65 56 %-demo: %-demo.cfa 57 ${CFA} $< -o $ {Build}/$@66 ${Build}/%-demo: ${Programs}/%-demo.cfa | ${Build} 67 ${CFA} $< -o $@ 58 68 69 ${Build}/%: ${Programs}/%.run.cfa | ${Build} 70 ${CFA} $< -o $@ 71 72 ${Build}/%: ${Programs}/%.run.c | ${Build} 73 ${CC} $< -o $@ 74 75 ${Build}/%: ${Programs}/%.run.cpp | ${Build} 76 ${CXX} -MMD $< -o $@ 77 78 ${Build}/%.out: ${Build}/% | ${Build} 79 $< > $@ 80 81 -include ${Build}/*.d
Note: See TracChangeset
for help on using the changeset viewer.