-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathmakefile
36 lines (27 loc) · 923 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
OS_NAME = $(shell uname -s)
#darwin or linux
LC_OS_NAME = $(shell echo $(OS_NAME) | tr '[A-Z]' '[a-z]')
MAKE_PLATFORM = pwd
ifeq ($(LC_OS_NAME), darwin)
CUR_OS = mac
else
CUR_OS = linux
endif
.PHONY:all
all:
$(MAKE_PLATFORM); cd build/$(CUR_OS); \
cmake -DSVNVERSION=$(rexx_version) -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_VERBOSE_MAKEFILE=ON ../../src; \
make -j 4
.PHONY:clean_all clean clean_build clean_3rd
clean_all:clean clean_build clean_3rd
clean:
if [ -d ./lib ]; then rm -rf bin/rexx && rm -rf bin/rexxd && cd lib/ && ls | grep -v http |grep -v ed25519 | xargs rm -rf; fi
clean_3rd:
cd src/3rd && make clean_3rd && cd ../../
clean_build:
cd build/$(CUR_OS)/; ls | grep -v rexx | grep -v one_step_pack.sh | xargs rm -rf
.PHONY:install uninstall
install:
cd build/$(CUR_OS) && make install && make soft_link -f MakeSupplement
uninstall:
cd build/$(CUR_OS) && make uninstall -f MakeSupplement