File: Makefile

package info (click to toggle)
curry-tools 1.0.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,492 kB
  • ctags: 121
  • sloc: makefile: 470; sh: 421
file content (34 lines) | stat: -rw-r--r-- 705 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Makefile for binding optimizer:

# directories
ANADIRS = ../../analysis:../../CASS

# binaries
# TODO: move to $(BINDIR)/.local
TOOL = $(ROOT)/currytools/optimize/bindingopt

.PHONY: all compile install clean uninstall

all: install

compile: BindingOpt

install: compile
	rm -f $(TOOL)
	cd .. && ln -s binding_optimization/BindingOpt $(notdir $(TOOL))

clean:
	$(CLEANCURRY) -r
	rm -f BindingOpt

uninstall: clean
	rm -f $(TOOL)

BindingOpt: BindingOpt.curry
	# create executable for top-level function "main":
	$(REPL) $(REPL_OPTS) :set path $(ANADIRS) :l $< :save :q

# Load only the program into the Curry system:
.PHONY: load
load: BindingOpt.curry
	$(REPL) $(REPL_OPTS) :set path $(ANADIRS) :l $<