forked from lagopus/lagopus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
52 lines (44 loc) · 1.1 KB
/
Makefile.in
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
TOPDIR = @TOPDIR@
MKRULESDIR = @MKRULESDIR@
include $(MKRULESDIR)/vars.mk
DIRS = tools \
src/lib \
src/include \
src/agent \
src/dataplane \
src/datastore \
@SNMP_DIR@ \
src/cmds \
src/config/lagosh \
debian
include $(MKRULESDIR)/rules.mk
install:: dpdk-install
clean:: dpdk-clean
$(RM) -r autom4te.cache config.log
find . -type f \( \
-name '*~' -o \
-name 'core' -o \
-name '*.core' -o \
-name 'vgcore.*' \
\) -exec rm -f {} \;
distclean:: clean
$(RM) -r ./src/dpdk/* ./src/dpdk/.??* \
./tools/unity/* ./tools/unity/.??*
$(RM) config.* mk/vars.mk mk/doxygen.conf ./libtool
# lagosh.py is not removed in 'clean'.
$(RM) -f src/config/lagosh/lagosh.py
find . -type f \( \
-name '.depend' \
\) -exec rm -f {} \;
find . -type d \( \
-name '.libs' \
\) -exec rm -rf {} \;
ultimateclean: distclean
@git clean -n -f -d -x | \
sed 's:^Would[[:space:]][[:space:]]*remove[[:space:]][[:space:]]*::' | \
grep -v tools/unity | \
xargs rm -rf
show-garbage:
@git clean -n -f -d -x | \
sed 's:^Would[[:space:]][[:space:]]*remove[[:space:]][[:space:]]*::' | \
grep -v tools/unity