~ubuntu-branches/ubuntu/edgy/sope/edgy

« back to all changes in this revision

Viewing changes to sope-gdl1/GDLAccess/fhs.make

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Ley
  • Date: 2005-08-19 16:53:31 UTC
  • Revision ID: james.westby@ubuntu.com-20050819165331-hs683wz1osm708pw
Tags: upstream-4.4rc.2
ImportĀ upstreamĀ versionĀ 4.4rc.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# postprocessing
 
2
 
 
3
# FHS support (this is a hack and is going to be done by gstep-make!)
 
4
 
 
5
ifneq ($(FHS_INSTALL_ROOT),)
 
6
 
 
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
 
 
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)"
 
14
 
 
15
 
 
16
fhs-header-dirs ::
 
17
        $(MKDIRS) $(FHS_INCLUDE_DIR)$(libGDLAccess_HEADER_FILES_INSTALL_DIR)
 
18
 
 
19
fhs-bin-dirs ::
 
20
        $(MKDIRS) $(FHS_BIN_DIR)
 
21
 
 
22
 
 
23
move-headers-to-fhs :: fhs-header-dirs
 
24
        @echo "moving headers to $(FHS_INCLUDE_DIR) .."
 
25
        mv $(GNUSTEP_HEADERS)$(libGDLAccess_HEADER_FILES_INSTALL_DIR)/*.h \
 
26
          $(FHS_INCLUDE_DIR)$(libGDLAccess_HEADER_FILES_INSTALL_DIR)/
 
27
 
 
28
move-libs-to-fhs :: 
 
29
        @echo "moving libs to $(FHS_LIB_DIR) .."
 
30
        mv $(NONFHS_LIBDIR)/$(NONFHS_LIBNAME)* $(FHS_LIB_DIR)/
 
31
 
 
32
move-tools-to-fhs :: fhs-bin-dirs
 
33
        @echo "moving tools from $(NONFHS_BINDIR) to $(FHS_BIN_DIR) .."
 
34
        for i in $(TOOL_NAME); do \
 
35
          mv "$(NONFHS_BINDIR)/$${i}" $(FHS_BIN_DIR); \
 
36
        done
 
37
 
 
38
move-to-fhs :: move-headers-to-fhs move-libs-to-fhs move-tools-to-fhs
 
39
 
 
40
after-install :: move-to-fhs
 
41
 
 
42
endif