aboutsummaryrefslogtreecommitdiff
path: root/core/samurai/files/ninja.in
blob: c648e47c39ab40542138b67a9e4cd2eff55948a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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