-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (52 loc) · 1.12 KB
/
Makefile
File metadata and controls
64 lines (52 loc) · 1.12 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
VERSION= 1.4.0
RELEASE= 0
build:
# Build instructions
SUBDIR+= bin/bluecat \
bin/trxctl \
gpio \
lib/liblua \
lib/libtrx-control \
extension \
protocol \
trx \
sbin/trxd \
udev \
external/bsd/luacurl \
external/bsd/luapgsql \
external/bsd/luasqlite \
external/mit/luaexpat \
external/mit/lualinux \
external/mit/luanode \
external/mit/luayaml \
external/mit/luazmq \
yum \
zypp \
systemd
MANDIR?= /usr/share/man
.PHONY: build
build: $(SUBDIR)
build: subdir
.PHONY: subdir $(SUBDIR)
subdir: $(SUBDIR)
$(SUBDIR):
VERSION=$(VERSION) RELEASE=$(RELEASE) $(MAKE) -C $@ $(TARGET)
# Recursive targets
.PHONY: clean
clean: TARGET=clean
clean: subdir
.PHONY: cleandir
cleandir: TARGET=cleandir
cleandir: subdir
.PHONY: install trx-control.7
install: TARGET=install
install: subdir trx-control.7
@echo all installed
trx-control.7:
@install -D -m 644 $@ $(DESTDIR)$(MANDIR)/man7/$@
@gzip -f $(DESTDIR)$(MANDIR)/man7/$@
# Dependencies
bin/trxctl: lib/libtrx-control lib/liblua
bin/xqrg: lib/libtrx-control lib/liblua
sbin/trxd: lib/libtrx-control lib/liblua
external/mit/luayaml: sbin/trxd