diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-12-31 14:14:17 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-12-31 14:14:17 +0000 |
commit | 30e3d9b315164804de9738efebf4d6aaaad50197 (patch) | |
tree | 0dc401aea8a81625e0fa3389e0b831fdfc7f4875 /Makefile | |
download | acf-lib-0.1.0.tar.bz2 acf-lib-0.1.0.tar.xz |
Lua libraries for standard functions moved out of acf-core 0.9.0v0.1.0
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5a93e73 --- /dev/null +++ b/Makefile @@ -0,0 +1,42 @@ +APP_NAME=lib +PACKAGE=acf-$(APP_NAME) +VERSION=0.1.0 + +APP_DIST=\ + *.lua\ + + +EXTRA_DIST=README Makefile + +DISTFILES=$(APP_DIST) $(EXTRA_DIST) + +TAR=tar + +P=$(PACKAGE)-$(VERSION) +tarball=$(P).tar.bz2 +install_dir=/usr/share/lua/5.1/ + +all: +clean: + rm -rf $(tarball) $(P) + +dist: $(tarball) + +install: + mkdir -p "$(install_dir)" + cp -a $(APP_DIST) "$(install_dir)" + +$(tarball): $(DISTFILES) + rm -rf $(P) + mkdir -p $(P) + cp -a $(DISTFILES) $(P) + $(TAR) -jcf $@ $(P) + rm -rf $(P) + +# target that creates a tar package, unpacks is and install from package +dist-install: $(tarball) + $(TAR) -jxf $(tarball) + $(MAKE) -C $(P) install DESTDIR=$(DESTDIR) + rm -rf $(P) + +.PHONY: all clean dist install dist-install |