forked from openSUSE/twopence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (42 loc) · 1.19 KB
/
Makefile
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
.PHONY: all install clean \
library server ruby shell examples tests \
library-install server-install ruby-install shell-install examples-install \
library-clean server-clean ruby-clean shell-clean examples-clean
include Make.defs
BINDINGS =
ifneq ($(WITH_RUBY),none)
BINDINGS += ruby
endif
ifneq ($(WITH_PYTHON),none)
BINDINGS += python
endif
SUBDIRS = \
library \
server \
$(BINDINGS) \
shell \
tests \
examples
INSTALL = install-helpers install-config
ifneq ($(TWOPENCE_PKGCONFIG_DIR),)
INSTALL += install-pkgconfig
endif
all clean install distclean::
@for dir in $(SUBDIRS); do \
echo "make -C $$dir $@"; make -C $$dir $@ || exit 1; \
done
install:: $(INSTALL)
install-helpers:
mkdir -p $(DESTDIR)$(TWOPENCE_DATADIR)
cp add_virtio_channel.sh $(DESTDIR)$(TWOPENCE_DATADIR)/add_virtio_channel
cp mkimage.sh $(DESTDIR)$(TWOPENCE_BINDIR)/create-sidecar
install-pkgconfig:
mkdir -p $(DESTDIR)$(TWOPENCE_PKGCONFIG_DIR)
cp twopence.pc $(DESTDIR)$(TWOPENCE_PKGCONFIG_DIR)
install-config:
mkdir -p $(DESTDIR)$(TWOPENCE_ETCDIR)
install -m 644 twopence.conf $(DESTDIR)$(TWOPENCE_ETCDIR)
distclean::
rm -f Make.defs twopence.pc
tests: server shell
make -C tests $@