-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
47 lines (29 loc) · 858 Bytes
/
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
# Copyright (C) 2012, Oy L M Ericsson Ab, NomadicLab. All rights reserved.
SUBDIRS1=src lib
SUBDIRS2=TopologyManager deployment examples/samples
SUBDIRS=$(SUBDIRS1) $(SUBDIRS2)
.PHONY: all subdirs $(SUBDIRS) clean distclean install uninstall configure \
install-deps
all: subdirs
subdirs: $(SUBDIRS)
base: $(SUBDIRS1)
apps: $(SUBDIRS2)
$(SUBDIRS):
$(MAKE) -C $@
clean:: $(addsuffix -clean,$(SUBDIRS))
%-clean::
$(MAKE) -C $* clean
distclean:: $(addsuffix -distclean,$(SUBDIRS1))
%-distclean::
$(MAKE) -C $* distclean
install:: $(addsuffix -install,$(SUBDIRS1))
%-install::
$(MAKE) -C $* install
uninstall:: $(addsuffix -uninstall,$(SUBDIRS1))
%-uninstall::
$(MAKE) -C $* uninstall
configure:: $(addsuffix -configure,$(SUBDIRS1))
%-configure::
cd $*; ./configure $(CONFIGFLAGS); cd ..
install-deps:
apt-get install `cat apt-get.txt`