Changeset 12048a1


Ignore:
Timestamp:
Apr 1, 2022, 3:13:46 PM (3 years ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
04821de
Parents:
a18373a
Message:

Simplifying the substring-aliasing demo's code-gen

Location:
doc/theses/mike_brooks_MMath/content/string
Files:
1 added
3 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mike_brooks_MMath/content/string/Makefile

    ra18373a r12048a1  
    99Build = ${BuildBase}/string
    1010
    11 # (plg2 has gem)
    12 # gem install --user-install liquid
    13 # gem install --user-install liquid-cli
    14 Liquid = ~/.gem/ruby/2.7.0/bin/liquid
    15 
    1611CFA = ../../../../../../build/driver/cfa
    1712
    18 DEMOS = ${addsuffix -demo, \
     13DEMOS = ${addprefix $(Build)/, ${addsuffix -demo.tex, \
    1914        sharing \
    20 }
     15}}
    2116
    2217EZDEMOS = ${addsuffix -ezdemo, \
     
    2722all: $(DEMOS) $(EZDEMOS)
    2823
    29 # removing the echo rule body means the rule doesn't fire
    30 %-demo: $(Build)/%-demo.tex %-demo-runok | $(Build)
    31         @echo target $@ made
    32 
    3324%-ezdemo: %-ezdemo-runok | $(Build)
    3425        @echo target $@ made
    35 
    36 %-demo-runok: $(Build)/%-demo | $(Build)
    37         $<
    3826
    3927%-ezdemo-runok: $(Build)/%-ezdemo | $(Build)
    4028        $<
    4129
    42 $(Build)/%-demo.tex: %-demo.json %-demo.tex.liquid | $(Build)
    43         $(Liquid) "$$(< $<)" < $(word 2,$^) > $@
    44 #       echo will run $(Liquid)
    45 #       echo will get JSON from $<
    46 #       echo will get template from $(word 2,$^)
     30$(Build)/%-demo.tex: $(Build)/%-demo | $(Build)
     31        $< > $@
    4732
    48 $(Build)/%-demo: $(Build)/%-demo.cfa
     33$(Build)/%-demo: %-demo.cfa
    4934        $(CFA) $< -o $@
    50 
    51 $(Build)/%-demo.cfa: %-demo.json %-demo.cfa.liquid | $(Build)
    52         $(Liquid) "$$(< $<)" < $(word 2,$^) > $@
    5335
    5436$(Build)/%-ezdemo: %-demo.cfa
Note: See TracChangeset for help on using the changeset viewer.