# fhs.make # # Copyright (C) 2004 Helge Hess. # All rights reserved. # # Author: Helge Hess # Date: Ausgust 2004 # # This file is part of libFoundation. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, provided # that the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting # documentation. # # We disclaim all warranties with regard to this software, including all # implied warranties of merchantability and fitness, in no event shall # we be liable for any special, indirect or consequential damages or any # damages whatsoever resulting from loss of use, data or profits, whether in # an action of contract, negligence or other tortious action, arising out of # or in connection with the use or performance of this software. # # FHS support (this is a hack and is going to be done by gstep-make!) ifneq ($(FHS_INSTALL_ROOT),) FHS_INCLUDE_DIR=$(FHS_INSTALL_ROOT)/include/ FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/ fhs-header-dirs :: $(MKDIRS) $(FHS_INCLUDE_DIR) $(MKDIRS) $(FHS_INCLUDE_DIR)/objc move-headers-to-fhs :: fhs-header-dirs @echo "moving headers to $(FHS_INCLUDE_DIR) .." mv $(GNUSTEP_HEADERS)/objc/*.h $(FHS_INCLUDE_DIR)/objc/ NONFHS_LIBDIR="$(GNUSTEP_LIBRARIES)/$(GNUSTEP_TARGET_LDIR)/" NONFHS_LIBNAME="$(LIBRARY_NAME)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)" move-libs-to-fhs :: @echo "moving libs to $(FHS_LIB_DIR) .." mv $(NONFHS_LIBDIR)/$(NONFHS_LIBNAME)* $(FHS_LIB_DIR)/ move-to-fhs :: move-headers-to-fhs move-libs-to-fhs after-install :: move-to-fhs endif