makefile.dist 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. #--------------------------------------------------------------------------
  2. # Distribution makefile
  3. #--------------------------------------------------------------------------
  4. DIST = luasocket-3.0-rc1
  5. TEST = \
  6. test/README \
  7. test/hello.lua \
  8. test/testclnt.lua \
  9. test/testsrvr.lua \
  10. test/testsupport.lua
  11. SAMPLES = \
  12. samples/README \
  13. samples/cddb.lua \
  14. samples/daytimeclnt.lua \
  15. samples/echoclnt.lua \
  16. samples/echosrvr.lua \
  17. samples/mclisten.lua \
  18. samples/mcsend.lua \
  19. samples/listener.lua \
  20. samples/lpr.lua \
  21. samples/talker.lua \
  22. samples/tinyirc.lua
  23. ETC = \
  24. etc/README \
  25. etc/b64.lua \
  26. etc/check-links.lua \
  27. etc/check-memory.lua \
  28. etc/dict.lua \
  29. etc/dispatch.lua \
  30. etc/eol.lua \
  31. etc/forward.lua \
  32. etc/get.lua \
  33. etc/lp.lua \
  34. etc/qp.lua \
  35. etc/tftp.lua
  36. SRC = \
  37. src/makefile \
  38. src/auxiliar.c \
  39. src/auxiliar.h \
  40. src/buffer.c \
  41. src/buffer.h \
  42. src/except.c \
  43. src/except.h \
  44. src/inet.c \
  45. src/inet.h \
  46. src/io.c \
  47. src/io.h \
  48. src/luasocket.c \
  49. src/luasocket.h \
  50. src/mime.c \
  51. src/mime.h \
  52. src/options.c \
  53. src/options.h \
  54. src/select.c \
  55. src/select.h \
  56. src/socket.h \
  57. src/tcp.c \
  58. src/tcp.h \
  59. src/timeout.c \
  60. src/timeout.h \
  61. src/udp.c \
  62. src/udp.h \
  63. src/unix.c \
  64. src/serial.c \
  65. src/unix.h \
  66. src/usocket.c \
  67. src/usocket.h \
  68. src/wsocket.c \
  69. src/wsocket.h \
  70. src/ftp.lua \
  71. src/http.lua \
  72. src/ltn12.lua \
  73. src/mime.lua \
  74. src/smtp.lua \
  75. src/socket.lua \
  76. src/headers.lua \
  77. src/tp.lua \
  78. src/url.lua
  79. MAKE = \
  80. makefile \
  81. luasocket.sln \
  82. luasocket-scm-0.rockspec \
  83. Lua51.props \
  84. Lua52.props \
  85. socket.vcxproj.filters \
  86. mime.vcxproj.filters \
  87. socket.vcxproj \
  88. mime.vcxproj
  89. DOC = \
  90. doc/dns.html \
  91. doc/ftp.html \
  92. doc/index.html \
  93. doc/http.html \
  94. doc/installation.html \
  95. doc/introduction.html \
  96. doc/ltn12.html \
  97. doc/luasocket.png \
  98. doc/mime.html \
  99. doc/reference.css \
  100. doc/reference.html \
  101. doc/smtp.html \
  102. doc/socket.html \
  103. doc/tcp.html \
  104. doc/udp.html \
  105. doc/url.html
  106. dist:
  107. mkdir -p $(DIST)
  108. cp -vf NEW $(DIST)
  109. cp -vf LICENSE $(DIST)
  110. cp -vf README $(DIST)
  111. cp -vf $(MAKE) $(DIST)
  112. mkdir -p $(DIST)/etc
  113. cp -vf $(ETC) $(DIST)/etc
  114. mkdir -p $(DIST)/src
  115. cp -vf $(SRC) $(DIST)/src
  116. mkdir -p $(DIST)/doc
  117. cp -vf $(DOC) $(DIST)/doc
  118. mkdir -p $(DIST)/samples
  119. cp -vf $(SAMPLES) $(DIST)/samples
  120. mkdir -p $(DIST)/test
  121. cp -vf $(TEST) $(DIST)/test
  122. tar -zcvf $(DIST).tar.gz $(DIST)
  123. zip -r $(DIST).zip $(DIST)
  124. clean:
  125. \rm -rf $(DIST) $(DIST).tar.gz $(DIST).zip