source: doc/theses/mike_brooks_MMath/content/string/Makefile @ 37e9c1d

ADTast-experimentalenumpthread-emulationqualifiedEnum
Last change on this file since 37e9c1d was 12048a1, checked in by Michael Brooks <mlbrooks@…>, 3 years ago

Simplifying the substring-aliasing demo's code-gen

  • Property mode set to 100644
File size: 879 bytes
RevLine 
[8e819a9]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
[12048a1]13DEMOS = ${addprefix $(Build)/, ${addsuffix -demo.tex, \
[8e819a9]14        sharing \
[12048a1]15}}
[8e819a9]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
[12048a1]30$(Build)/%-demo.tex: $(Build)/%-demo | $(Build)
31        $< > $@
[8e819a9]32
[12048a1]33$(Build)/%-demo: %-demo.cfa
[8e819a9]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.