Skip to content

Commit

Permalink
New ifdef functionality simplifies Holmakefile in computability/lambd…
Browse files Browse the repository at this point in the history
…a example.
  • Loading branch information
mn200 committed Oct 24, 2011
1 parent 71b9d77 commit b935461
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions examples/computability/lambda/Holmakefile
@@ -1,20 +1,16 @@
INCLUDES = ../../lambda/barendregt ../../lambda/basics \
../../lambda/other-models ../
OPTIONS = QUIT_ON_FAILURE

ifdef POLY
HOLHEAP = computability-heap
EXTRA_CLEANS = $(HOLHEAP) $(HOLHEAP).o

BARE_THYS = ../../lambda/barendregt/normal_orderTheory \
../../lambda/other-models/pure_dBTheory
DEPS_poly = $(patsubst %,%.uo,$(BARE_THYS))
DEPS_mosml =

TARGET_poly = $(HOLHEAP)
TARGET_mosml = brackabs.sml
DEPS = $(patsubst %,%.uo,$(BARE_THYS))

COMM_mosml =
COMM_poly = \
$(protect $(HOLDIR)/bin/buildheap) -o computability-heap $(BARE_THYS)
$(HOLHEAP): $(DEPS)
$(protect $(HOLDIR)/bin/buildheap) -o computability-heap $(BARE_THYS)

$(TARGET_$(ML_SYSNAME)): $(DEPS_$(ML_SYSNAME))
$(COMM_$(ML_SYSNAME))
endif

0 comments on commit b935461

Please sign in to comment.