-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.mk.old
36 lines (27 loc) · 840 Bytes
/
setup.mk.old
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
# THIS MAKFILE IS GENERATED
PACKAGES = resource-manager vxlan evpn
NETWORK = create-network packages/ncs-4.6.1-cisco-nx-5.2.tar.gz 3 LFND- \
create-network packages/ncs-4.6.1-cisco-nx-5.2.tar.gz 2 BRLFND-
.PHONY: netsim netsim-clean netsim-start netsim-stop
netsim:
if [ ! -d netsim ]; then \
mkdir netsim; \
ncs-netsim --dir netsim $(NETWORK); \
ncs-netsim ncs-xml-init > ncs-cdb/netsim_devices_init.xml; \
fi
netsim-clean:
rm -rf netsim
rm -rf ncs-cdb/netsim_devices_init.xml
netsim-start:
ncs-netsim start
netsim-stop:
[ -d netsim ] && ncs-netsim stop || true
.PHONY: packages packages-clean
packages:
(for i in $(PACKAGES); do \
$(MAKE) -C packages/$${i}/src all || exit 1; \
done)
packages-clean:
(for i in $(PACKAGES); do \
$(MAKE) -C packages/$${i}/src clean || exit 1; \
done)