-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (18 loc) · 942 Bytes
/
Makefile
File metadata and controls
23 lines (18 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all: linux win32
linux:
cd lib && make clean simplehttp.so iconv.so
rm -rf out-linux && mkdir out-linux && cp lib/simplehttp.so lib/iconv.so out-linux
tar czvf linux-`uname -m`-lua5.4.tar.gz out-linux scripts README.md
win32:
cd lib && make clean simplehttp.dll simplehttpx64.dll iconv.dll iconvx64.dll
rm -rf out-mingw && mkdir out-mingw && cp lib/simplehttp.dll lib/iconv.dll out-mingw
rm -rf out-mingw64 && mkdir out-mingw64 && cp lib/simplehttpx64.dll out-mingw64/simplehttp.dll && cp lib/iconvx64.dll out-mingw64/iconv.dll
zip -r win32-lua5.4.zip out-mingw out-mingw64 scripts README.md
macos:
cd lib && make PLAT=macos clean simplehttp.so iconv.so
rm -rf out-macos && mkdir out-macos && cp lib/simplehttp.so lib/iconv.so out-macos
tar czvf macos-`uname -m`-lua5.4.tar.gz out-macos scripts README.md
clean:
rm -rf out-mingw out-linux out-macos linux-*.tar.gz win32-*.zipa macos-*.tar.gz
purge: clean
cd lib && make purge