]> err.no Git - scalable-opengroupware.org/blob - fhsbundle.make
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1208 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / fhsbundle.make
1 # FHS support (this is a hack and is going to be done by gstep-make!)
2
3 ifneq ($(FHS_INSTALL_ROOT),)
4
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)/
8
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)"
12
13
14 fhs-sogod-dirs ::
15         $(MKDIRS) $(FHS_SOGOD_DIR)
16
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)";\
27         done
28
29 #         mv "$(BUNDLE_INSTALL_DIR)/$${i}$(BUNDLE_EXTENSION)" $$j; \
30
31 move-to-fhs :: move-bundles-to-fhs
32
33 after-install :: move-to-fhs
34
35 endif