aboutsummaryrefslogtreecommitdiff
path: root/makefile.dist
blob: a31a9a5bc48d51585f45daed155be00d0e2f1cf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#--------------------------------------------------------------------------
# Distribution makefile
#--------------------------------------------------------------------------

DIST = luasocket-2.0-beta3

LUA = \
	ftp.lua \
	http.lua \
	ltn12.lua \
	mime.lua \
	smtp.lua \
	socket.lua \
	compat-5.1.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 \
	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 \
	compat-5.1.c \
	compat-5.1.h

MAKE = \
	makefile.Darwin \
	makefile.Linux \
	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/instalation.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 -vf TODO $(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