diff options
author | Alexander Poslavsky <alexander.poslavsky@gmail.com> | 2007-11-02 07:48:38 +0000 |
---|---|---|
committer | Alexander Poslavsky <alexander.poslavsky@gmail.com> | 2007-11-02 07:48:38 +0000 |
commit | 2f6b7570cdf277f1c3889464fd7705b089e1eac4 (patch) | |
tree | 296e0a730ac80a32f1ff4cd0e710484d93c9cf9b /Makefile | |
parent | b418c71c42d0fea752d3e686d269dec0f943d31b (diff) | |
download | acf-shorewall-2f6b7570cdf277f1c3889464fd7705b089e1eac4.tar.bz2 acf-shorewall-2f6b7570cdf277f1c3889464fd7705b089e1eac4.tar.xz |
shorewall directory files, show changes
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@250 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..01a86ba --- /dev/null +++ b/Makefile @@ -0,0 +1,47 @@ +APP_NAME=shorewall +PACKAGE=acf-$(APP_NAME) +VERSION=0.1 + +APP_DIST=\ + shorewall-controller.lua \ + shorewall-html.lsp \ + shorewall-read-html.lsp \ + shorewall.menu \ + cfgfile/firewall.cfg + +EXTRA_DIST=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 |