aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomas <tomas>2004-09-29 17:46:24 +0000
committertomas <tomas>2004-09-29 17:46:24 +0000
commit8382ef436288664a1199e33f21336c7b9388ab58 (patch)
tree59a5b194fe562ffbd648903db0dd8379de413243
parentc899c9b2e24401671695b614e88e11886942ad51 (diff)
downloadluafilesystem-8382ef436288664a1199e33f21336c7b9388ab58.tar.gz
luafilesystem-8382ef436288664a1199e33f21336c7b9388ab58.tar.bz2
luafilesystem-8382ef436288664a1199e33f21336c7b9388ab58.zip
Atualizando o codigo para a nova proposta de pacotes.
-rw-r--r--Makefile22
-rw-r--r--t_lfs.lua8
2 files changed, 9 insertions, 21 deletions
diff --git a/Makefile b/Makefile
index df9d59a..37703e7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
1# $Id: Makefile,v 1.3 2004/07/29 16:47:11 tomas Exp $ 1# $Id: Makefile,v 1.4 2004/09/29 17:46:24 tomas Exp $
2 2
3T= lfs 3T= lfs
4 4
@@ -9,8 +9,6 @@ DIST_DIR= luafilesystem-$V
9TAR_FILE= $(DIST_DIR).tar.gz 9TAR_FILE= $(DIST_DIR).tar.gz
10ZIP_FILE= $(DIST_DIR).zip 10ZIP_FILE= $(DIST_DIR).zip
11LIBNAME= lib$T.$V$(LIB_EXT) 11LIBNAME= lib$T.$V$(LIB_EXT)
12L= $T.lua
13TL= t_$T.lua
14 12
15SRCS= $T.c 13SRCS= $T.c
16OBJS= $T.o 14OBJS= $T.o
@@ -18,24 +16,22 @@ OBJS= $T.o
18 16
19lib: $(LIBNAME) 17lib: $(LIBNAME)
20 18
21$(LIBNAME): $(OBJS) $(TL) 19$(LIBNAME): $(OBJS)
22 $(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBNAME) $(OBJS) $(LIBS) 20 $(CC) $(CFLAGS) $(LIB_OPTION) -o $(LIBNAME) $(OBJS) $(LIBS)
23 sed -e "s|LIB_NAME|$(LIB_DIR)/$(LIBNAME)|" $(TL) > $L
24 21
25$(LUA_DIR)/$L: $L 22install: $(LIBNAME)
26 mkdir -p $(LUA_DIR)
27 cp $L $(LUA_DIR)
28
29install: $(LUA_DIR)/$L $(LIBNAME)
30 mkdir -p $(LIB_DIR) 23 mkdir -p $(LIB_DIR)
31 cp $(LIBNAME) $(LIB_DIR) 24 cp $(LIBNAME) $(LIB_DIR)
25 ln -f -s $(LIB_DIR)/$(LIBNAME) $(LIB_DIR)/$T$(LIB_EXT)
32 26
33clean: 27clean:
34 rm -f $L $(LIBNAME) $(OBJS) 28 rm -f $L $(LIBNAME) $(OBJS)
35 29
36dist: 30dist: dist_dir
37 mkdir -p $(DIST_DIR)
38 cp config $(SRCS) $T.h $T.def $(TL) Makefile *html $(DIST_DIR)
39 tar -czf $(TAR_FILE) $(DIST_DIR) 31 tar -czf $(TAR_FILE) $(DIST_DIR)
40 zip -rq $(ZIP_FILE) $(DIST_DIR)/* 32 zip -rq $(ZIP_FILE) $(DIST_DIR)/*
41 rm -rf $(DIST_DIR) 33 rm -rf $(DIST_DIR)
34
35dist_dir:
36 mkdir -p $(DIST_DIR)
37 cp config $(SRCS) $T.h $T.def Makefile *html $(DIST_DIR)
diff --git a/t_lfs.lua b/t_lfs.lua
deleted file mode 100644
index b81950a..0000000
--- a/t_lfs.lua
+++ /dev/null
@@ -1,8 +0,0 @@
1-- $Id: t_lfs.lua,v 1.1 2004/07/29 14:26:33 tomas Exp $
2if not lfs and loadlib then
3 local libname = "LIB_NAME"
4 local libopen = "luaopen_lfs"
5 local init, err1, err2 = loadlib (libname, libopen)
6 assert (init, (err1 or '')..(err2 or ''))
7 init ()
8end