|
root / stub / Makefile
Makefile Makefile 36 lines 705 B
 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
34
35
#
# zyginit — Init system for Zygaena/Hammerhead
#
# Requires: Reef 0.4.0+
#

REEF = reef
REEF_FLAGS =

BINDIR = build

TARGETS = $(BINDIR)/zyginit $(BINDIR)/zygctl

all: $(TARGETS)

$(BINDIR)/zyginit: src/zyginit.reef src/config.reef src/depgraph.reef \
		src/contract.reef src/supervisor.reef src/socket.reef
	mkdir -p $(BINDIR)
	$(REEF) build $(REEF_FLAGS) src/zyginit.reef -o $@

$(BINDIR)/zygctl: src/zygctl.reef
	mkdir -p $(BINDIR)
	$(REEF) build $(REEF_FLAGS) src/zygctl.reef -o $@

install: all
	install -m 755 $(BINDIR)/zyginit $(DESTDIR)/sbin/zyginit
	install -m 755 $(BINDIR)/zygctl $(DESTDIR)/sbin/zygctl

clean:
	rm -rf $(BINDIR)

test:
	$(REEF) test tests/

.PHONY: all install clean test