diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-09-17 16:18:32 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-09-17 16:18:32 +0000 |
commit | e4580cd98e5e42612dfa49ccfa2bb79fc47cfab5 (patch) | |
tree | 8db120c961cbde070b672c51c2a2446e3e7b6a39 /Makefile | |
download | acf-iproute2-qos-e4580cd98e5e42612dfa49ccfa2bb79fc47cfab5.tar.bz2 acf-iproute2-qos-e4580cd98e5e42612dfa49ccfa2bb79fc47cfab5.tar.xz |
First cut at ACF for iproute2-qosv0.1.0
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9016b4a --- /dev/null +++ b/Makefile @@ -0,0 +1,44 @@ +APP_NAME=iproute2-qos +PACKAGE=acf-$(APP_NAME) +VERSION=0.1.0 + +APP_DIST=\ + qos* \ + + +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 -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) + +include config.mk + +.PHONY: all clean dist install dist-install |