luasocket/makefile.dist

95 lines
1.6 KiB
Plaintext
Raw Normal View History

2000-12-29 23:15:09 +01:00
#--------------------------------------------------------------------------
# Distribution makefile
2000-12-29 23:15:09 +01:00
#--------------------------------------------------------------------------
DIST = luasocket-1.5-alpha
2000-12-29 23:15:09 +01:00
LUA = \
concat.lua \
code.lua \
url.lua \
http.lua \
smtp.lua \
ftp.lua \
select.lua \
luasocket.lua
2003-03-29 00:29:45 +01:00
TESTS = \
testclnt.lua \
testsrvr.lua \
testcmd.lua \
codetest.lua \
urltest.lua \
concattest.lua \
ftptest.lua \
httptest.lua \
smtptest.lua \
mbox.lua \
udptest.lua
2003-03-29 00:29:45 +01:00
EXAMPLES = \
check-links.lua \
daytimeclnt.lua \
echoclnt.lua \
echosrvr.lua \
get.lua \
listener.lua \
talker.lua \
tinyirc.lua
ETC = \
cl-compat.lua \
tftp.lua \
dict.lua
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
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
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