summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBaoyou Xie <[email protected]>2020-07-17 14:32:08 +0800
committerBaoyou Xie <[email protected]>2020-07-17 14:32:08 +0800
commit95fcf01a12b74a4635a4c688ac08a3b26b0aae3d (patch)
treec8604579daa6bf28d29632760d0b16d1dd45d892 /Makefile
parentf59870eb2c3756d6a0eac626661da1318b4bf82c (diff)
diagnose-tools: 优化Makefile文件
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 77c2a86..8ca5b26 100644
--- a/Makefile
+++ b/Makefile
@@ -3,9 +3,14 @@ CWD = $(shell pwd)
UNAME_A := $(shell uname -a)
all: module tools java_agent pkg
+ifneq ($(findstring Ubuntu,$(UNAME_A)),)
+ dpkg -P diagnose-tools || echo "remove diagnose-tools error"
+ cd rpmbuild; sudo dpkg -i diagnose-tools*.deb
+else
yum remove -y diagnose-tools
yum install -y rpmbuild/RPMS/x86_64/diagnose-tools-*.rpm
diagnose-tools -v
+endif
devel:
ifneq ($(findstring Ubuntu,$(UNAME_A)),)
@@ -61,8 +66,6 @@ ifneq ($(findstring Ubuntu,$(UNAME_A)),)
#sudo dpkg-reconfigure dash !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
cd rpmbuild; rm -f diagnose-tools*.deb
cd rpmbuild; sudo alien -d ./RPMS/x86_64/diagnose-tools*.rpm
- dpkg -P diagnose-tools || echo "remove diagnose-tools error"
- cd rpmbuild; sudo dpkg -i diagnose-tools*.deb
endif
test: