File: Makefile.am

package info (click to toggle)
theme-d 7.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,036 kB
  • sloc: lisp: 9,625; sh: 5,321; makefile: 715; ansic: 477
file content (71 lines) | stat: -rw-r--r-- 2,241 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71

INTERFACE_SRC = $(wildcard test*.thi)
BODY_SRC = $(wildcard test*.thb)
PROPER_PROG_SRC = $(wildcard test*.thp)
SCRIPT_SRC = $(wildcard test*.ths)
CORRECT_OUTPUT = $(wildcard test*.out)

CUSTOM_RKT = custom1.rkt

GUILE_LIB_DIR = ../../guile-code
COMPILE = GUILE_LOAD_PATH=$(GUILE_LIB_DIR) GUILE_LOAD_COMPILED_PATH=$(GUILE_LIB_DIR) THEME_D_CONFIG_FILE=../../theme-d-config-maint $(GUILE_LIB_DIR)/theme-d/translator/theme-d-compile.scm

AUXILIARY_FILES = \
	aux-test229-data.txt \
	aux-test266-data.txt \
	aux-test267-data.txt \
	aux-test268-data.txt \
	aux-test270-data.txt \
	aux-test273-data.txt \
	aux-test837-data.txt

COMPILED_FILES = \
        mod1.tci mod1.tcb \
        numerical-test-env.tci numerical-test-env.tcb \
        matrix-test-env.tci matrix-test-env.tcb

SOURCE_FILES = \
        numerical-test-env.thi numerical-test-env.thb \
        matrix-test-env.thi matrix-test-env.thb

%.tci : %.thi
	$(COMPILE) -m .. -o $@ $(EXTRA_COMP_OPTIONS) $<

%.tcb : %.thb
	$(COMPILE) -m .. -o $@ $(EXTRA_COMP_OPTIONS) $<

numerical-test-env.tcb : numerical-test-env.tci

matrix-test-env.tcb : matrix-test-env.tci

# There is a special version for mod1.tci for testing.
mod1.tci : mod1.thi
	cp -v mod1.tci-0 $@

testsdir = $(THEME_D_TESTS_DIR)
tests_DATA = $(INTERFACE_SRC) $(BODY_SRC) $(PROPER_PROG_SRC) \
  $(SCRIPT_SRC) $(AUXILIARY_FILES) $(CORRECT_OUTPUT) $(COMPILED_FILES) \
  $(SOURCE_FILES) $(CUSTOM_RKT)

mostlyclean-local: mostlyclean-local-check

.PHONY:  mostlyclean-local-check clean-test-env

mostlyclean-local-check:
	-rm -f $(patsubst %.thi,%.tci,$(INTERFACE_SRC))
	-rm -f $(patsubst %.thb,%.tcb,$(BODY_SRC))
	-rm -f $(patsubst %.thp,%.tcp,$(PROPER_PROG_SRC))
	-rm -f $(patsubst %.ths,%.tcs,$(SCRIPT_SRC))
	-rm -f $(patsubst %.thp,%.go,$(PROPER_PROG_SRC))
	-rm -f $(patsubst %.ths,%.go,$(SCRIPT_SRC))
	-rm -f $(patsubst %.thp,%.tree-il,$(PROPER_PROG_SRC))
	-rm -f $(patsubst %.ths,%.tree-il,$(SCRIPT_SRC))
	-rm -f $(patsubst %.thp,%.scm,$(PROPER_PROG_SRC))
	-rm -f $(patsubst %.ths,%.scm,$(SCRIPT_SRC))
	-rm -f numerical-test-env.tci numerical-test-env.tcb
	-rm -f matrix-test-env.tci matrix-test-env.tcb

clean-test-env:
	-rm -f numerical-test-env.tci numerical-test-env.tcb
	-rm -f matrix-test-env.tci matrix-test-env.tcb