1 # FHS support (this is a hack and is going to be done by gstep-make!)
3 ifneq ($(FHS_INSTALL_ROOT),)
5 FHS_INCLUDE_DIR=$(FHS_INSTALL_ROOT)/include/
6 FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/
7 FHS_SOGOD_DIR=$(FHS_LIB_DIR)sogod-$(MAJOR_VERSION).$(MINOR_VERSION)/
9 #NONFHS_LIBDIR="$(GNUSTEP_LIBRARIES)/$(GNUSTEP_TARGET_LDIR)/"
10 #NONFHS_LIBNAME="$(LIBRARY_NAME)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)"
11 NONFHS_BINDIR="$(GNUSTEP_TOOLS)/$(GNUSTEP_TARGET_LDIR)"
15 $(MKDIRS) $(FHS_SOGOD_DIR)
17 move-bundles-to-fhs :: fhs-sogod-dirs
18 @echo "moving bundles $(BUNDLE_INSTALL_DIR) to $(FHS_SOGOD_DIR) .."
19 for i in $(BUNDLE_NAME); do \
20 j="$(FHS_SOGOD_DIR)/$${i}$(BUNDLE_EXTENSION)"; \
21 if test -d $$j; then rm -r $$j; fi; \
22 (cd $(BUNDLE_INSTALL_DIR); \
23 $(TAR) chf - --exclude=CVS --exclude=.svn --to-stdout \
24 "$${i}$(BUNDLE_EXTENSION)") | \
25 (cd $(FHS_SOGOD_DIR); $(TAR) xf -); \
26 rm -rf "$(BUNDLE_INSTALL_DIR)/$${i}$(BUNDLE_EXTENSION)";\
29 # mv "$(BUNDLE_INSTALL_DIR)/$${i}$(BUNDLE_EXTENSION)" $$j; \
31 move-to-fhs :: move-bundles-to-fhs
33 after-install :: move-to-fhs