Picking up D again

This commit is contained in:
Dan Buch 2012-10-17 23:50:50 -04:00
parent 37ffe3c870
commit 55ce5682e2
4 changed files with 13 additions and 0 deletions

1
d/prog-lang-book/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/bin/*

View 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)

View File

5
d/prog-lang-book/src/hello.d Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env rdmd
import std.stdio;
void main() {
writeln("Hello, world!");
}