]> err.no Git - sope/blob - libFoundation/examples/fhs.make
tweaked layout
[sope] / libFoundation / examples / fhs.make
1 #  fhs.make
2 #
3 #  Copyright (C) 2004 Helge Hess.
4 #  All rights reserved.
5 #
6 #  Author: Helge Hess <helge.hess@opengroupware.org>
7 #  Date: Ausgust 2004
8 #
9 #  This file is part of libFoundation.
10 #
11 #  Permission to use, copy, modify, and distribute this software and its
12 #  documentation for any purpose and without fee is hereby granted, provided
13 #  that the above copyright notice appear in all copies and that both that
14 #  copyright notice and this permission notice appear in supporting
15 #  documentation.
16 #
17 #  We disclaim all warranties with regard to this software, including all
18 #  implied warranties of merchantability and fitness, in no event shall
19 #  we be liable for any special, indirect or consequential damages or any
20 #  damages whatsoever resulting from loss of use, data or profits, whether in
21 #  an action of contract, negligence or other tortious action, arising out of
22 #  or in connection with the use or performance of this software.
23 #
24
25 # FHS support (this is a hack and is going to be done by gstep-make!)
26
27 ifneq ($(FHS_INSTALL_ROOT),)
28
29 FHS_BIN_DIR=$(FHS_INSTALL_ROOT)/bin/
30
31 fhs-bin-dirs ::
32         $(MKDIRS) $(FHS_BIN_DIR)
33
34 NONFHS_BINDIR="$(GNUSTEP_TOOLS)/$(GNUSTEP_TARGET_LDIR)"
35
36 move-tools-to-fhs :: fhs-bin-dirs
37         @echo "moving tools from $(NONFHS_BINDIR) to $(FHS_BIN_DIR) .."
38         for i in $(TOOL_NAME); do \
39           mv "$(NONFHS_BINDIR)/$${i}" $(FHS_BIN_DIR); \
40         done
41
42 move-to-fhs :: move-tools-to-fhs
43
44 after-install :: move-to-fhs
45
46 endif