Melhoria na reutilizacao do Makefile.
This commit is contained in:
parent
7f51ed607e
commit
b4f67ccfea
15
Makefile
15
Makefile
@ -1,17 +1,20 @@
|
|||||||
VERSION= 1.0a
|
VERSION= 1.0a
|
||||||
PKG= luaxmlrpc-$(VERSION)
|
PKG= luaxmlrpc-$(VERSION)
|
||||||
|
DIST_DIR= $(PKG)
|
||||||
TAR_FILE= $(PKG).tar.gz
|
TAR_FILE= $(PKG).tar.gz
|
||||||
ZIP_FILE= $(PKG).zip
|
ZIP_FILE= $(PKG).zip
|
||||||
SRCS= README Makefile \
|
SRCS= README Makefile \
|
||||||
xmlrpc.lua http.lua cgi.lua test.lua \
|
xmlrpc.lua http.lua cgi.lua test.lua \
|
||||||
index.html manual.html license.html luaxmlrpc.png
|
index.html manual.html license.html luaxmlrpc.png
|
||||||
|
|
||||||
dist:
|
dist: dist_dir
|
||||||
mkdir $(PKG)
|
tar -czf $(TAR_FILE) $(DIST_DIR)
|
||||||
cp $(SRCS) $(PKG)
|
zip -lq $(ZIP_FILE) $(DIST_DIR)/*
|
||||||
tar -czf $(TAR_FILE) $(PKG)
|
rm -rf $(DIST_DIR)
|
||||||
zip -lq $(ZIP_FILE) $(PKG)/*
|
|
||||||
rm -rf $(PKG)
|
dist_dir:
|
||||||
|
mkdir $(DIST_DIR)
|
||||||
|
cp $(SRCS) $(DIST_DIR)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm $(TAR_FILE) $(ZIP_FILE)
|
rm $(TAR_FILE) $(ZIP_FILE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user