source: doc/theses/mike_brooks_MMath/content/string/Makefile @ 12048a1

enumpthread-emulationqualifiedEnum
Last change on this file since 12048a1 was 12048a1, checked in by Michael Brooks <mlbrooks@…>, 10 months ago

Simplifying the substring-aliasing demo's code-gen

  • Property mode set to 100644
File size: 879 bytes
Line 
1SHELL := /bin/bash
2
3# The targets made here are individual code-level demos.
4# Some produce LaTeX fragments.  All are being checked for the code being valid.
5# None are being built from *.tex toward *.pdf.  Use the top-level makefile for that.
6
7
8BuildBase = ../../build
9Build = ${BuildBase}/string
10
11CFA = ../../../../../../build/driver/cfa
12
13DEMOS = ${addprefix $(Build)/, ${addsuffix -demo.tex, \
14        sharing \
15}}
16
17EZDEMOS = ${addsuffix -ezdemo, \
18        sharectx \
19}
20
21
22all: $(DEMOS) $(EZDEMOS)
23
24%-ezdemo: %-ezdemo-runok | $(Build) 
25        @echo target $@ made
26
27%-ezdemo-runok: $(Build)/%-ezdemo | $(Build)
28        $<
29
30$(Build)/%-demo.tex: $(Build)/%-demo | $(Build)
31        $< > $@
32
33$(Build)/%-demo: %-demo.cfa
34        $(CFA) $< -o $@
35
36$(Build)/%-ezdemo: %-demo.cfa
37        $(CFA) $< -o $@
38
39
40
41
42${Build}:
43        mkdir -p $@
44
45.PHONY : all %-demo %-demo %-runok
46.PRECIOUS : $(Build)/%-demo.tex $(Build)/%-demo.cfa $(Build)/%-demo
Note: See TracBrowser for help on using the repository browser.