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
|
||||
PKG= luaxmlrpc-$(VERSION)
|
||||
DIST_DIR= $(PKG)
|
||||
TAR_FILE= $(PKG).tar.gz
|
||||
ZIP_FILE= $(PKG).zip
|
||||
SRCS= README Makefile \
|
||||
xmlrpc.lua http.lua cgi.lua test.lua \
|
||||
index.html manual.html license.html luaxmlrpc.png
|
||||
|
||||
dist:
|
||||
mkdir $(PKG)
|
||||
cp $(SRCS) $(PKG)
|
||||
tar -czf $(TAR_FILE) $(PKG)
|
||||
zip -lq $(ZIP_FILE) $(PKG)/*
|
||||
rm -rf $(PKG)
|
||||
dist: dist_dir
|
||||
tar -czf $(TAR_FILE) $(DIST_DIR)
|
||||
zip -lq $(ZIP_FILE) $(DIST_DIR)/*
|
||||
rm -rf $(DIST_DIR)
|
||||
|
||||
dist_dir:
|
||||
mkdir $(DIST_DIR)
|
||||
cp $(SRCS) $(DIST_DIR)
|
||||
|
||||
clean:
|
||||
rm $(TAR_FILE) $(ZIP_FILE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user