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/
10
FHS_WOx_DIR=$(FHS_LIB_DIR)sope-4.4/wox-builders/
12
NONFHS_LIBDIR="$(GNUSTEP_LIBRARIES)/$(GNUSTEP_TARGET_LDIR)/"
13
NONFHS_LIBNAME="$(LIBRARY_NAME)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)"
17
$(MKDIRS) $(FHS_INCLUDE_DIR)$(libWEExtensions_HEADER_FILES_INSTALL_DIR)
20
$(MKDIRS) $(FHS_WOx_DIR)
23
move-headers-to-fhs :: fhs-header-dirs
24
@echo "moving headers to $(FHS_INCLUDE_DIR) .."
25
mv $(GNUSTEP_HEADERS)$(libWEExtensions_HEADER_FILES_INSTALL_DIR)/*.h \
26
$(FHS_INCLUDE_DIR)$(libWEExtensions_HEADER_FILES_INSTALL_DIR)/
29
@echo "moving libs to $(FHS_LIB_DIR) .."
30
mv $(NONFHS_LIBDIR)/$(NONFHS_LIBNAME)* $(FHS_LIB_DIR)/
32
move-bundles-to-fhs :: fhs-wox-dirs
33
@echo "moving bundles $(BUNDLE_INSTALL_DIR) to $(FHS_WOx_DIR) .."
34
for i in $(BUNDLE_NAME); do \
35
j="$(FHS_WOx_DIR)/$${i}$(BUNDLE_EXTENSION)"; \
36
if test -d $$j; then rm -r $$j; fi; \
37
mv "$(BUNDLE_INSTALL_DIR)/$${i}$(BUNDLE_EXTENSION)" $$j; \
40
move-to-fhs :: move-headers-to-fhs move-libs-to-fhs move-bundles-to-fhs
42
after-install :: move-to-fhs