forked from dylan-lang/dylan-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (23 loc) · 775 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
# Low-tech Makefile to build and install dylan-playground.
# This Makefile assumes you have an Open Dylan that can build static
# executables. That is, a post-2020.1 release.
DYLAN ?= $${HOME}/dylan
environment ?= dev
install_dir = /opt/dylan-playground/$(environment)
install_bin = $(install_dir)/bin
.PHONY: build clean install dist distclean
build:
dylan update
dylan build --unify dylan-playground
install: build
mkdir -p $(install_bin)
mkdir -p $(install_dir)/shares
cp _build/sbin/dylan-playground.dbg $(install_bin)/dylan-playground
cp -p playground.dsp $(install_dir)/
cp -r static $(install_dir)/
cp -p config.$(environment).xml $(install_dir)/config.xml
dist: distclean install
clean:
rm -rf _build
distclean: clean
rm -rf $(install_dir)