From 8baec08dff8c440e18ca5304189527a4778f5609 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 4 Jul 2006 20:00:11 +0000 Subject: [PATCH] - new make include file similar to fhsbundle, but intended for WOBUNDLES; Monotone-Parent: 2dfe7d952d3eb6482453947b46e4b9f58ba0bf9c Monotone-Revision: 4f19f810a4cc24359a80527e9b89621df77ad4c0 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-07-04T20:00:11 Monotone-Branch: ca.inverse.sogo --- fhswobundle.make | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 fhswobundle.make diff --git a/fhswobundle.make b/fhswobundle.make new file mode 100644 index 000000000..4afdeef27 --- /dev/null +++ b/fhswobundle.make @@ -0,0 +1,35 @@ +# FHS support (this is a hack and is going to be done by gstep-make!) + +ifneq ($(FHS_INSTALL_ROOT),) + +FHS_INCLUDE_DIR=$(FHS_INSTALL_ROOT)/include/ +FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/ +FHS_SOGOD_DIR=$(FHS_LIB_DIR)sogod-$(MAJOR_VERSION).$(MINOR_VERSION)/ + +#NONFHS_LIBDIR="$(GNUSTEP_LIBRARIES)/$(GNUSTEP_TARGET_LDIR)/" +#NONFHS_LIBNAME="$(LIBRARY_NAME)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)" +NONFHS_BINDIR="$(GNUSTEP_TOOLS)/$(GNUSTEP_TARGET_LDIR)" + + +fhs-sogod-dirs :: + $(MKDIRS) $(FHS_SOGOD_DIR) + +move-wobundles-to-fhs :: fhs-sogod-dirs + @echo "moving wobundles $(WOBUNDLE_INSTALL_DIR) to $(FHS_SOGOD_DIR) .." + for i in $(WOBUNDLE_NAME); do \ + j="$(FHS_SOGOD_DIR)/$${i}$(WOBUNDLE_EXTENSION)"; \ + if test -d $$j; then rm -r $$j; fi; \ + (cd $(WOBUNDLE_INSTALL_DIR); \ + $(TAR) chf - --exclude=CVS --exclude=.svn --to-stdout \ + "$${i}$(WOBUNDLE_EXTENSION)") | \ + (cd $(FHS_SOGOD_DIR); $(TAR) xf -); \ + rm -rf "$(WOBUNDLE_INSTALL_DIR)/$${i}$(WOBUNDLE_EXTENSION)";\ + done + +# mv "$(WOBUNDLE_INSTALL_DIR)/$${i}$(WOBUNDLE_EXTENSION)" $$j; \ + +move-to-fhs :: move-wobundles-to-fhs + +after-install :: move-to-fhs + +endif