diff options
| author | Baoyou Xie <[email protected]> | 2020-07-17 14:32:08 +0800 |
|---|---|---|
| committer | Baoyou Xie <[email protected]> | 2020-07-17 14:32:08 +0800 |
| commit | 95fcf01a12b74a4635a4c688ac08a3b26b0aae3d (patch) | |
| tree | c8604579daa6bf28d29632760d0b16d1dd45d892 /Makefile | |
| parent | f59870eb2c3756d6a0eac626661da1318b4bf82c (diff) | |
diagnose-tools: 优化Makefile文件
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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: |
