diff options
author | Andreas Brodmann <andreas.brodmann@gmail.com> | 2007-11-08 18:06:11 +0000 |
---|---|---|
committer | Andreas Brodmann <andreas.brodmann@gmail.com> | 2007-11-08 18:06:11 +0000 |
commit | f516cb2b59deb5fe025efd653b237239eef37f38 (patch) | |
tree | 66ee9401d61ccccb107cbcb45be9d03508e06f0a /Makefile | |
parent | 26c743986d3320b977a26a38bf7cd50741c8bc6b (diff) | |
download | acf-dhcp-1.0_alpha1.tar.bz2 acf-dhcp-1.0_alpha1.tar.xz |
initial import of /acf/dhcpv1.0_alpha1
git-svn-id: svn://svn.alpinelinux.org/acf/dhcp@274 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..eb2fb69 --- /dev/null +++ b/Makefile @@ -0,0 +1,47 @@ +APP_NAME=dhcp +PACKAGE=acf-$(APP_NAME) +VERSION=1.0_alpha1 + +APP_DIST=dhcp-controller.lua \ + dhcp-editnet-html.lsp \ + dhcp-home-html.lsp \ + dhcp-view-html.lsp \ + dhcp-model.lua \ + dhcp.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 |