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-wobundles-to-fhs :: fhs-sogod-dirs
18 @echo "moving wobundles $(WOBUNDLE_INSTALL_DIR) to $(FHS_SOGOD_DIR) .."
19 for i in $(WOBUNDLE_NAME); do \
20 j="$(FHS_SOGOD_DIR)/$${i}$(WOBUNDLE_EXTENSION)"; \
21 if test -d $$j; then rm -r $$j; fi; \
22 (cd $(WOBUNDLE_INSTALL_DIR); \
23 $(TAR) chf - --exclude=CVS --exclude=.svn --to-stdout \
24 "$${i}$(WOBUNDLE_EXTENSION)") | \
25 (cd $(FHS_SOGOD_DIR); $(TAR) xf -); \
26 rm -rf "$(WOBUNDLE_INSTALL_DIR)/$${i}$(WOBUNDLE_EXTENSION)";\
29 # mv "$(WOBUNDLE_INSTALL_DIR)/$${i}$(WOBUNDLE_EXTENSION)" $$j; \
31 move-to-fhs :: move-wobundles-to-fhs
33 after-install :: move-to-fhs