3 # FHS support (this is a hack and is going to be done by gstep-make!)
5 ifneq ($(FHS_INSTALL_ROOT),)
7 FHS_INCLUDE_DIR=$(FHS_INSTALL_ROOT)/include/
8 FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/
9 FHS_BIN_DIR=$(FHS_INSTALL_ROOT)/bin/
11 NONFHS_LIBDIR="$(GNUSTEP_LIBRARIES)/$(GNUSTEP_TARGET_LDIR)/"
12 NONFHS_LIBNAME="$(LIBRARY_NAME)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)"
13 NONFHS_BINDIR="$(GNUSTEP_TOOLS)/$(GNUSTEP_TARGET_LDIR)"
17 ifneq ($(FHS_HEADER_DIRS),)
19 move-headers-to-fhs ::
20 @echo "moving headers to $(FHS_INCLUDE_DIR) .."
21 for i in "$(FHS_HEADER_DIRS)"; do \
22 $(MKDIRS) $(FHS_INCLUDE_DIR)/$$i; \
23 mv $(GNUSTEP_HEADERS)/$$i/*.h $(FHS_INCLUDE_DIR)/$$i/; \
28 move-headers-to-fhs ::
33 @echo "moving libs to $(FHS_LIB_DIR) .."
34 mv $(NONFHS_LIBDIR)/$(NONFHS_LIBNAME)* $(FHS_LIB_DIR)/
41 $(MKDIRS) $(FHS_BIN_DIR)
43 move-tools-to-fhs :: fhs-bin-dirs
44 @echo "moving tools from $(NONFHS_BINDIR) to $(FHS_BIN_DIR) .."
45 for i in $(TOOL_NAME); do \
46 mv "$(NONFHS_BINDIR)/$${i}" $(FHS_BIN_DIR); \
57 move-to-fhs :: move-headers-to-fhs move-libs-to-fhs move-tools-to-fhs
59 after-install :: move-to-fhs