|
1 |
| -# Low-tech Makefile to build and install dylan-tool. |
2 |
| - |
3 |
| -# Building an executable for a library named "dylan" causes a conflict with the |
4 |
| -# base dylan library. I want this tool to be named "dylan" on the command line, |
5 |
| -# so it's necessary to use a makefile to build and then rename the executable |
6 |
| -# during the installation process. |
7 |
| - |
8 |
| -# Because there's currently no way to make a static executable this gets |
9 |
| -# installed with the following directory structure: |
10 |
| -# |
11 |
| -# ${DYLAN}/install/dylan-tool/bin/dylan-tool # dylan-tool executable |
12 |
| -# ${DYLAN}/install/dylan-tool/lib/* # dylan-tool used libraries |
13 |
| -# ${DYLAN}/bin/dylan # symlink |
14 |
| -# -> ../install/dylan-tool/bin/dylan-tool # to here |
15 |
| -# |
16 |
| -# So just make sure ${DYLAN}/bin (or ${HOME}/dylan/bin, the default) is on your path. |
| 1 | +# Low-tech Makefile to build and install deft. |
17 | 2 |
|
18 | 3 | DYLAN ?= $${HOME}/dylan
|
19 |
| -install_dir = $(DYLAN)/install/dylan-tool |
| 4 | +install_dir = $(DYLAN)/install/deft |
20 | 5 | install_bin = $(install_dir)/bin
|
21 | 6 | install_lib = $(install_dir)/lib
|
22 |
| -link_target = $(install_bin)/dylan-tool-app |
| 7 | +link_target = $(install_bin)/deft-app |
23 | 8 | link_source = $(DYLAN)/bin/dylan
|
24 | 9 |
|
25 | 10 | git_version := "$(shell git describe --tags --always --match 'v*')"
|
26 | 11 |
|
27 |
| -.PHONY: build build-with-version clean install install-debug really-install remove-dylan-tool-artifacts test dist distclean |
| 12 | +.PHONY: build build-with-version clean install install-debug really-install remove-deft-artifacts test dist distclean |
28 | 13 |
|
29 |
| -build: remove-dylan-tool-artifacts |
30 |
| - OPEN_DYLAN_USER_REGISTRIES=${PWD}/registry dylan-compiler -build -unify dylan-tool-app |
| 14 | +build: remove-deft-artifacts |
| 15 | + OPEN_DYLAN_USER_REGISTRIES=${PWD}/registry dylan-compiler -build -unify deft-app |
31 | 16 |
|
32 | 17 | # Hack to add the version to the binary with git tag info. Don't want this to
|
33 | 18 | # be the normal build because it causes unnecessary rebuilds.
|
34 |
| -build-with-version: remove-dylan-tool-artifacts |
| 19 | +build-with-version: remove-deft-artifacts |
35 | 20 | file="sources/commands/utils.dylan"; \
|
36 | 21 | orig=$$(mktemp); \
|
37 | 22 | temp=$$(mktemp); \
|
38 | 23 | cp -p $${file} $${orig}; \
|
39 | 24 | cat $${file} | sed "s,/.__./.*/.__./,/*__*/ \"${git_version}\" /*__*/,g" > $${temp}; \
|
40 | 25 | mv $${temp} $${file}; \
|
41 | 26 | OPEN_DYLAN_USER_REGISTRIES=${PWD}/registry \
|
42 |
| - dylan-compiler -build -unify dylan-tool-app; \ |
| 27 | + dylan-compiler -build -unify deft-app; \ |
43 | 28 | cp -p $${orig} $${file}
|
44 | 29 |
|
45 | 30 | really-install:
|
46 | 31 | mkdir -p $(DYLAN)/bin
|
47 |
| - cp _build/sbin/dylan-tool-app $(DYLAN)/bin/ |
| 32 | + cp _build/sbin/deft-app $(DYLAN)/bin/ |
48 | 33 |
|
49 | 34 | install: build-with-version really-install
|
50 | 35 |
|
51 | 36 | # Build and install without the version hacking above.
|
52 | 37 | install-debug: build really-install
|
53 | 38 |
|
54 |
| -# dylan-tool needs to be buildable with submodules so that it can be built on |
| 39 | +# Deft needs to be buildable with submodules so that it can be built on |
55 | 40 | # new platforms without having to manually install deps.
|
56 | 41 | test: build
|
57 | 42 | OPEN_DYLAN_USER_REGISTRIES=${PWD}/registry \
|
58 |
| - dylan-compiler -build dylan-tool-test-suite \ |
59 |
| - && DYLAN_CATALOG=ext/pacman-catalog _build/bin/dylan-tool-test-suite |
| 43 | + dylan-compiler -build deft-test-suite \ |
| 44 | + && DYLAN_CATALOG=ext/pacman-catalog _build/bin/deft-test-suite |
60 | 45 |
|
61 | 46 | dist: distclean install
|
62 | 47 |
|
63 |
| -# Sometimes I use dylan-tool to develop dylan-tool, so this makes sure to clean |
| 48 | +# Sometimes I use deft to develop deft, so this makes sure to clean |
64 | 49 | # up its artifacts.
|
65 |
| -remove-dylan-tool-artifacts: |
| 50 | +remove-deft-artifacts: |
66 | 51 | rm -rf _packages
|
67 | 52 | find registry -not -path '*/generic/*' -type f -exec rm {} \;
|
68 | 53 |
|
69 |
| -clean: remove-dylan-tool-artifacts |
| 54 | +clean: remove-deft-artifacts |
70 | 55 | rm -rf _build
|
71 | 56 | rm -rf _test
|
72 | 57 |
|
|
0 commit comments