Permalink
Browse files

Experimental Ninja support.

  • Loading branch information...
1 parent 63d88af commit b1840e39caec731aaa6b207b9d71ad8af038ac6e @m1kc committed Dec 9, 2015
Showing with 23 additions and 1 deletion.
  1. +2 −0 .gitignore
  2. +1 −0 README.md
  3. +19 −0 build.ninja
  4. +1 −1 sfn.1
View
2 .gitignore
@@ -5,3 +5,5 @@ archlinux/src
archlinux/pkg
archlinux/*.src.tar.gz
archlinux/*.pkg.tar.xz
+
+.ninja_*
View
1 README.md
@@ -27,6 +27,7 @@ If you already have all this, just type `make` (or `make ldc`, or `make gdc`) to
If you need to rebuild the manpage (typically you don't), install ronn and run `make man`.
+There also is experimental Ninja support. Try `ninja` and `ninja -t clean`.
Help
View
19 build.ninja
@@ -0,0 +1,19 @@
+rule lib
+ command = gcc $in -shared -c -o $out
+
+rule dmd
+ command = dmd $in -of$out -O -w -wi
+
+rule gdc
+ command = gdc $in -o $out -O2 -Wall
+
+rule ldc
+ command = ldc2 $in -O2 -of $out
+
+rule ronn
+ command = ronn -r $in
+
+
+build terminal.o: lib terminal.c
+build sfn: ldc sfn.d terminal.o
+build sfn.1: ronn sfn.1.ronn
View
2 sfn.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "SFN" "1" "February 2013" "" ""
+.TH "SFN" "1" "July 2013" "" ""
.
.SH "NAME"
\fBsfn\fR \- send files over network

0 comments on commit b1840e3

Please sign in to comment.