2000-12-29 23:15:09 +01:00
|
|
|
#--------------------------------------------------------------------------
|
2001-01-25 22:49:48 +01:00
|
|
|
# Distribution makefile
|
2000-12-29 23:15:09 +01:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
|
2003-06-30 08:10:02 +02:00
|
|
|
DIST = luasocket-2.0-alpha
|
2000-12-29 23:15:09 +01:00
|
|
|
|
2003-06-09 20:23:40 +02:00
|
|
|
LUA = \
|
2003-06-30 08:10:02 +02:00
|
|
|
auxiliar.lua
|
|
|
|
code.lua
|
|
|
|
concat.lua
|
|
|
|
ftp.lua
|
2003-03-29 00:29:45 +01:00
|
|
|
|
2003-06-09 20:23:40 +02:00
|
|
|
TESTS = \
|
2003-06-30 08:10:02 +02:00
|
|
|
codetest.lua
|
|
|
|
concattest.lua
|
|
|
|
ftptest.lua
|
2003-03-29 00:29:45 +01:00
|
|
|
|
2003-06-09 20:23:40 +02:00
|
|
|
EXAMPLES = \
|
2003-06-30 08:10:02 +02:00
|
|
|
check-links.lua
|
|
|
|
daytimeclnt.lua
|
|
|
|
echoclnt.lua
|
|
|
|
echosrvr.lua
|
|
|
|
dict.lua
|
2003-06-09 20:23:40 +02:00
|
|
|
|
|
|
|
ETC = \
|
2003-06-30 08:10:02 +02:00
|
|
|
cl-compat.lua
|
|
|
|
|
|
|
|
get.lua
|
|
|
|
http.lua
|
|
|
|
httptest.lua
|
|
|
|
listener.lua
|
|
|
|
lua.lua
|
|
|
|
luasocket.lua
|
|
|
|
mbox.lua
|
|
|
|
noglobals.lua
|
|
|
|
select.lua
|
|
|
|
smtp.lua
|
|
|
|
smtptest.lua
|
|
|
|
talker.lua
|
|
|
|
testclnt.lua
|
|
|
|
test.lua
|
|
|
|
testsrvr.lua
|
|
|
|
tftp.lua
|
|
|
|
tinyirc.lua
|
|
|
|
udptest.lua
|
|
|
|
url.lua
|
|
|
|
urltest.lua
|
2003-06-09 20:23:40 +02:00
|
|
|
|
|
|
|
MAIN = \
|
|
|
|
auxiliar.c \
|
|
|
|
auxiliar.h \
|
|
|
|
buffer.c \
|
|
|
|
buffer.h \
|
|
|
|
error.c \
|
|
|
|
error.h \
|
|
|
|
inet.c \
|
|
|
|
inet.h \
|
|
|
|
io.c \
|
|
|
|
io.h \
|
|
|
|
lua.c \
|
|
|
|
luasocket.c \
|
|
|
|
luasocket.h \
|
|
|
|
makefile \
|
|
|
|
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 \
|
2000-12-29 23:15:09 +01:00
|
|
|
|
|
|
|
dist:
|
|
|
|
mkdir -p $(DIST)/examples
|
2003-03-29 00:29:45 +01:00
|
|
|
mkdir -p $(DIST)/tests
|
2003-06-09 20:23:40 +02:00
|
|
|
mkdir -p $(DIST)/etc
|
|
|
|
mkdir -p $(DIST)/lua
|
|
|
|
cp -vf $(MAIN) $(DIST)
|
2003-03-29 00:29:45 +01:00
|
|
|
cp -vf $(LUA) $(DIST)
|
2000-12-29 23:15:09 +01:00
|
|
|
cp -vf makefile $(DIST)
|
|
|
|
cp -vf README $(DIST)
|
2003-03-29 00:29:45 +01:00
|
|
|
cp -vf $(EXAMPLES) $(DIST)/examples
|
|
|
|
cp -vf README.examples $(DIST)/examples/README
|
|
|
|
cp -vf $(TESTS) $(DIST)/tests
|
|
|
|
cp -vf README.tests $(DIST)/tests/README
|
2003-06-09 20:23:40 +02:00
|
|
|
cp -vf $(ETC) $(DIST)/etc
|
|
|
|
cp -vf README.etc $(DIST)/etc/README
|
2000-12-29 23:15:09 +01:00
|
|
|
tar -zcvf $(DIST).tar.gz $(DIST)
|
|
|
|
zip -r $(DIST).zip $(DIST)
|
2003-03-29 00:29:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
\rm -rf $(DIST) $(DIST).tar.gz $(DIST).zip
|