mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-19 11:48:21 +01:00
773e35ced3
Implemented a nice dispatcher! Non-blocking check-links and forward server use the dispatcher.
131 lines
2.2 KiB
Plaintext
131 lines
2.2 KiB
Plaintext
#--------------------------------------------------------------------------
|
|
# Distribution makefile
|
|
#--------------------------------------------------------------------------
|
|
|
|
DIST = luasocket-2.0
|
|
|
|
COMPAT = compat-5.1r4
|
|
|
|
LUA = \
|
|
ftp.lua \
|
|
http.lua \
|
|
ltn12.lua \
|
|
mime.lua \
|
|
smtp.lua \
|
|
socket.lua \
|
|
tp.lua \
|
|
url.lua
|
|
|
|
TESTS = \
|
|
testclnt.lua \
|
|
testsrvr.lua \
|
|
testsupport.lua
|
|
|
|
EXAMPLES = \
|
|
check-memory.lua \
|
|
b64.lua \
|
|
cddb.lua \
|
|
daytimeclnt.lua \
|
|
echoclnt.lua \
|
|
echosrvr.lua \
|
|
eol.lua \
|
|
listener.lua \
|
|
qp.lua \
|
|
lpr.lua \
|
|
talker.lua \
|
|
tinyirc.lua
|
|
|
|
ETC = \
|
|
check-links.lua \
|
|
check-links-nb.lua \
|
|
dict.lua \
|
|
get.lua \
|
|
unix.c \
|
|
unix.h \
|
|
lp.lua \
|
|
tftp.lua
|
|
|
|
CORE = \
|
|
auxiliar.c \
|
|
auxiliar.h \
|
|
buffer.c \
|
|
buffer.h \
|
|
except.c \
|
|
except.h \
|
|
inet.c \
|
|
inet.h \
|
|
io.c \
|
|
io.h \
|
|
luasocket.c \
|
|
luasocket.h \
|
|
mime.c \
|
|
mime.h \
|
|
options.c \
|
|
options.h \
|
|
select.c \
|
|
select.h \
|
|
socket.h \
|
|
tcp.c \
|
|
tcp.h \
|
|
timeout.c \
|
|
timeout.h \
|
|
udp.c \
|
|
udp.h \
|
|
usocket.c \
|
|
usocket.h \
|
|
wsocket.c \
|
|
wsocket.h
|
|
|
|
MAKE = \
|
|
makefile \
|
|
config \
|
|
luasocket.sln \
|
|
luasocket.vcproj \
|
|
mime.vcproj
|
|
|
|
MANUAL = \
|
|
manual/dns.html \
|
|
manual/ftp.html \
|
|
manual/home.html \
|
|
manual/http.html \
|
|
manual/introduction.html \
|
|
manual/ltn12.html \
|
|
manual/luasocket.png \
|
|
manual/mime.html \
|
|
manual/installation.html \
|
|
manual/reference.css \
|
|
manual/reference.html \
|
|
manual/smtp.html \
|
|
manual/socket.html \
|
|
manual/tcp.html \
|
|
manual/udp.html \
|
|
manual/url.html
|
|
|
|
dist:
|
|
mkdir -p $(DIST)/examples
|
|
mkdir -p $(DIST)/tests
|
|
mkdir -p $(DIST)/etc
|
|
mkdir -p $(DIST)/lua
|
|
mkdir -p $(DIST)/manual
|
|
cp -vfr $(COMPAT) $(DIST)
|
|
cp -vf $(CORE) $(DIST)
|
|
cp -vf README $(DIST)
|
|
cp -vf NEW $(DIST)
|
|
cp -vf LICENSE $(DIST)
|
|
cp -vf $(MAKE) $(DIST)
|
|
cp -vf make.README $(DIST)/INSTALL
|
|
cp -vf $(LUA) $(DIST)/lua
|
|
cp -vf lua.README $(DIST)/lua/README
|
|
cp -vf $(EXAMPLES) $(DIST)/examples
|
|
cp -vf examples.README $(DIST)/examples/README
|
|
cp -vf $(TESTS) $(DIST)/tests
|
|
cp -vf tests.README $(DIST)/tests/README
|
|
cp -vf $(ETC) $(DIST)/etc
|
|
cp -vf etc.README $(DIST)/etc/README
|
|
cp -vf $(MANUAL) $(DIST)/manual
|
|
tar -zcvf $(DIST).tar.gz $(DIST)
|
|
zip -r $(DIST).zip $(DIST)
|
|
|
|
clean:
|
|
\rm -rf $(DIST) $(DIST).tar.gz $(DIST).zip
|