diff options
author | Cem Keylan <cem@ckyln.com> | 2021-08-30 11:30:24 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-08-30 11:30:24 +0300 |
commit | c6b37618f5edb567d307a95a07da2a042bc17f02 (patch) | |
tree | 1e58bea088dbcc669ef8d58bb3bc0babad73d2c5 /extra/samurai/files | |
parent | 5b1b23a780a490317faea7f7ae2c29d649a12a8f (diff) | |
download | repository-c6b37618f5edb567d307a95a07da2a042bc17f02.tar.gz |
samurai: use ninja if available
Diffstat (limited to 'extra/samurai/files')
-rw-r--r-- | extra/samurai/files/ninja.in | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/extra/samurai/files/ninja.in b/extra/samurai/files/ninja.in new file mode 100644 index 00000000..c648e47c --- /dev/null +++ b/extra/samurai/files/ninja.in @@ -0,0 +1,33 @@ +rule cc + command = $cc $cflags -c -o $out $in + description = Compiling C object $out +rule link + command = $cc $ldflags -o $out $in + description = Linking $out +rule custom + command = $COMMAND + description = $DESC + +build build.o: cc build.c +build deps.o: cc deps.c +build env.o: cc env.c +build graph.o: cc graph.c +build htab.o: cc htab.c +build log.o: cc log.c +build parse.o: cc parse.c +build samu.o: cc samu.c +build scan.o: cc scan.c +build tool.o: cc tool.c +build tree.o: cc tree.c +build util.o: cc util.c +build samu: link build.o deps.o env.o graph.o htab.o log.o parse.o samu.o scan.o tool.o tree.o util.o +build install: phony bin-install man-install +build PHONY: phony +build bin-install: custom PHONY samu + COMMAND = clinst -Dm755 samu $destdir/usr/bin/samu + DESC = Installing samu +build man-install: custom PHONY + COMMAND = clman -d $destdir samu.1 + DESC = Installing manual page samu.1 + +default samu |