polygott

No description

fork
loading
Files
  • Makefile
  • project
  • run
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
#
# d.repl
# repl.it but with dlang
#

# get the root project directory
export root_dir := $(CURDIR)

# the project directory for your code
export project := $(root_dir)/project

# the dlang compiler to use (dmd, ldc, or gdc)
export flavor := dmd

#
# you shouldn't have to edit anything past here!
#

.PHONY: run
run: $(root_dir)/dlang
	@bash $(root_dir)/run

$(root_dir)/dlang:
	@curl -fsS https://dlang.org/install.sh | bash -s $(flavor)