-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (27 loc) · 778 Bytes
/
Makefile
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
#
# Makefile to build and install polyonimo
#
# Maple tty executable
maple := maple
MAPLE_ROOT := $(shell $(maple) -q -c 'printf("%A\n",kernelopts(mapledir))' -cdone)
MAPLE_BIN := $(shell $(maple) -q -c 'printf("%A\n",kernelopts(bindir))' -cdone)
BIN_SYS := $(notdir $(MAPLE_BIN))
default: polyonimo.mla polyonimo.hdb
install_dir := ${HOME}/maple/toolbox/polyonimo
installed_mla := $(install_dir)/lib/polyonimo.mla
install: $(installed_mla)
polyonimo.mla: make/savelib.mpl
# $(RM) $@
$(maple) -q $+
polyonimo.hdb: make/makehelp.mpl
# $(RM) $@
$(maple) -q $+
$(installed_mla): polyonimo.mla
install -d $(dir $@)
install -t $(dir $@) $+
# Clean up
clean:
$(RM) $(installed_mla)
uninstall: clean
$(RM) -r $(install_dir)
.phony: clean default install uninstall