comparison makefile @ 0:4b915342e2a8

LuaSocket 2.0.2 + CMake build description.
author Eric Wing <ewing . public |-at-| gmail . com>
date Tue, 26 Aug 2008 18:40:01 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4b915342e2a8
1 #------
2 # Load configuration
3 #
4 include config
5
6 #------
7 # Hopefully no need to change anything below this line
8 #
9 INSTALL_SOCKET_SHARE=$(INSTALL_TOP_SHARE)/socket
10 INSTALL_SOCKET_LIB=$(INSTALL_TOP_LIB)/socket
11 INSTALL_MIME_SHARE=$(INSTALL_TOP_SHARE)/mime
12 INSTALL_MIME_LIB=$(INSTALL_TOP_LIB)/mime
13
14 all clean:
15 cd src; $(MAKE) $@
16
17 #------
18 # Files to install
19 #
20 TO_SOCKET_SHARE:= \
21 http.lua \
22 url.lua \
23 tp.lua \
24 ftp.lua \
25 smtp.lua
26
27 TO_TOP_SHARE:= \
28 ltn12.lua \
29 socket.lua \
30 mime.lua
31
32 TO_MIME_SHARE:=
33
34 #------
35 # Install LuaSocket according to recommendation
36 #
37 install: all
38 cd src; mkdir -p $(INSTALL_TOP_SHARE)
39 cd src; $(INSTALL_DATA) $(TO_TOP_SHARE) $(INSTALL_TOP_SHARE)
40 cd src; mkdir -p $(INSTALL_SOCKET_SHARE)
41 cd src; $(INSTALL_DATA) $(TO_SOCKET_SHARE) $(INSTALL_SOCKET_SHARE)
42 cd src; mkdir -p $(INSTALL_SOCKET_LIB)
43 cd src; $(INSTALL_EXEC) $(SOCKET_SO) $(INSTALL_SOCKET_LIB)/core.$(EXT)
44 #cd src; mkdir -p $(INSTALL_MIME_SHARE)
45 #cd src; $(INSTALL_DATA) $(TO_MIME_SHARE) $(INSTALL_MIME_SHARE)
46 cd src; mkdir -p $(INSTALL_MIME_LIB)
47 cd src; $(INSTALL_EXEC) $(MIME_SO) $(INSTALL_MIME_LIB)/core.$(EXT)
48
49 #------
50 # End of makefile
51 #