From 6898d43145abec567ced449b48ac4c1977e97332 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 29 Jan 2015 16:36:37 -0500 Subject: Initial commit for acf-mariadb based on acf-mysql-0.1.1 --- Makefile | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b734c95 --- /dev/null +++ b/Makefile @@ -0,0 +1,47 @@ +APP_NAME=mariadb +PACKAGE=acf-$(APP_NAME) +VERSION=0.1.1 + +APP_DIST=\ + mysql* \ + + +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)" + for i in $$(ls -1 $(acflibdir)/db-*.lsp); do\ + ln -sf ../../lib/$$(basename $$i) $(install_dir)/$$(echo "$$(basename $$i)" | sed "s/db/$(APP_NAME)/");\ + done + +$(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 -- cgit v1.2.3