From 55ce5682e235c28c51749957525a382a451902dc Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Wed, 17 Oct 2012 23:50:50 -0400 Subject: [PATCH] Picking up D again --- d/prog-lang-book/.gitignore | 1 + d/prog-lang-book/Makefile | 7 +++++++ d/prog-lang-book/bin/.gitkeep | 0 d/prog-lang-book/src/hello.d | 5 +++++ 4 files changed, 13 insertions(+) create mode 100644 d/prog-lang-book/.gitignore create mode 100644 d/prog-lang-book/Makefile create mode 100644 d/prog-lang-book/bin/.gitkeep create mode 100755 d/prog-lang-book/src/hello.d diff --git a/d/prog-lang-book/.gitignore b/d/prog-lang-book/.gitignore new file mode 100644 index 0000000..5b450d4 --- /dev/null +++ b/d/prog-lang-book/.gitignore @@ -0,0 +1 @@ +/bin/* diff --git a/d/prog-lang-book/Makefile b/d/prog-lang-book/Makefile new file mode 100644 index 0000000..2e26faa --- /dev/null +++ b/d/prog-lang-book/Makefile @@ -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) diff --git a/d/prog-lang-book/bin/.gitkeep b/d/prog-lang-book/bin/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/d/prog-lang-book/src/hello.d b/d/prog-lang-book/src/hello.d new file mode 100755 index 0000000..859f89a --- /dev/null +++ b/d/prog-lang-book/src/hello.d @@ -0,0 +1,5 @@ +#!/usr/bin/env rdmd +import std.stdio; +void main() { + writeln("Hello, world!"); +}