forked from tboox/tbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
27 lines (19 loc) · 904 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
all: build/.xmake/bin/xmake .null
build/.xmake/bin/xmake
clean: build/.xmake/bin/xmake .null
build/.xmake/bin/xmake clean
distclean: build/.xmake/bin/xmake .null
build/.xmake/bin/xmake clean --all
rebuild: build/.xmake/bin/xmake .null
build/.xmake/bin/xmake --rebuild
install: build/.xmake/bin/xmake .null
build/.xmake/bin/xmake install
uninstall: build/.xmake/bin/xmake .null
build/.xmake/bin/xmake uninstall
build/.xmake/bin/xmake:
if [ ! -d build/.xmake ]; then mkdir -p build/.xmake; fi
if [ ! -f build/.xmake/xmake.zip ]; then wget https://coding.net/u/waruqi/p/xmake/git/archive/master -O build/.xmake/xmake.zip; fi
if [ ! -f build/.xmake/xmake.zip ]; then wget https://github.com/waruqi/xmake/archive/master.zip -O build/.xmake/xmake.zip; fi
cd build/.xmake; unzip xmake.zip; cd xmake-master; ./install `pwd`/..
.PHONY:all clean distclean rebuild install uninstall .null
.null: