diff options
author | Andreas Brodmann <andreas.brodmann@gmail.com> | 2007-11-20 19:47:58 +0000 |
---|---|---|
committer | Andreas Brodmann <andreas.brodmann@gmail.com> | 2007-11-20 19:47:58 +0000 |
commit | b2a4c830601186377d8999bac02ea465fd704e66 (patch) | |
tree | b0b5fe21c3d156daaa3fe2cacc06135dad30b8e4 /Makefile | |
parent | 5c0d2431db19eb77acc9e9b76ae0010e40240dcc (diff) | |
download | acf-squid-1.0_alpha1.tar.bz2 acf-squid-1.0_alpha1.tar.xz |
initial import of acf-squidv1.0_alpha1
git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@350 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2e7c405 --- /dev/null +++ b/Makefile @@ -0,0 +1,45 @@ +APP_NAME=squid +PACKAGE=acf-$(APP_NAME) +VERSION=1.0_alpha1 + +APP_DIST=squid-controller.lua \ + squid-basic-html.lsp \ + squid-model.lua \ + squid.menu + +EXTRA_DIST=README Makefile config.mk + +DISTFILES=$(APP_DIST) $(EXTRA_DIST) + +TAR=tar + +P=$(PACKAGE)-$(VERSION) +tarball=$(P).tar.bz2 +install_dir=$(DESTDIR)/$(appdir)/$(APP_NAME) + +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 $(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) + +include config.mk + +.PHONY: all clean dist install dist-install |