Picking up D again
This commit is contained in:
parent
37ffe3c870
commit
55ce5682e2
1
d/prog-lang-book/.gitignore
vendored
Normal file
1
d/prog-lang-book/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/bin/*
|
7
d/prog-lang-book/Makefile
Normal file
7
d/prog-lang-book/Makefile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
ALL_SOURCES := $(shell find src -name '*.d')
|
||||||
|
ALL_TARGETS := $(patsubst src/%.d,bin/%,$(ALL_SOURCES))
|
||||||
|
|
||||||
|
bin/%: src/%.d
|
||||||
|
dmd $^ -of$@
|
||||||
|
|
||||||
|
$(ALL_TARGETS): $(ALL_SOURCES)
|
0
d/prog-lang-book/bin/.gitkeep
Normal file
0
d/prog-lang-book/bin/.gitkeep
Normal file
5
d/prog-lang-book/src/hello.d
Executable file
5
d/prog-lang-book/src/hello.d
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env rdmd
|
||||||
|
import std.stdio;
|
||||||
|
void main() {
|
||||||
|
writeln("Hello, world!");
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user