# $Revision$

#    SAM-QFS_notice_begin
#
#      Solaris 2.x Sun Storage & Archiving Management File System
#
#               Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.
#
#               U.S. Government Rights - Commercial software. Government users are
#       subject to the Sun Microsystems, Inc. standard license agreement and applicable
#       provisions of the FAR and its supplements.
#
#       Use is subject to license terms. Sun, Sun Microsystems and the Sun logo
#       are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S.
#       and other countries.
#
#    SAM-QFS_notice_end
#
#
#       LGPL NOTICE
#
#       This library is free software; you can redistribute it and/or
#       modify it under the terms of the GNU Lesser General Public
#       License as published by the Free Software Foundation; either
#       version 2.1 of the License, or (at your option) any later version.
#
#       This library is distributed in the hope that it will be useful,
#       but WITHOUT ANY WARRANTY; without even the implied warranty of
#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#       Lesser General Public License for more details.
#
#       You should have received a copy of the GNU Lesser General Public
#       License along with this library; if not, write to the Free Software
#       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

DEPTH = ..

include $(DEPTH)/mk/common.mk


#
# Create OBJ_DIR to hold nl_messages.cat
#
__dummy := $(shell [ -d $(OBJ_DIR) ] || mkdir -p $(OBJ_DIR) )

LDIRS = lib

CATMSGS = catalog.msg
CATALOG = $(OBJ_DIR)/nl_messages.cat

DIRS = $(LDIRS) $(PDIRS)

include $(DEPTH)/mk/targets.mk

all: $(OBJ_DIR)/nl_messages.cat

$(OBJ_DIR)/nl_messages.cat: catalog.msg
	rm -f             $(OBJ_DIR)/nl_messages.cat
	/usr/bin/gencat   $(OBJ_DIR)/nl_messages.cat catalog.msg
	/bin/chmod -w $(OBJ_DIR)/nl_messages.cat

ifeq ($(OS), SunOS)
install: $(OBJ_DIR)/nl_messages.cat install_more
install_more: nl_messages.cat
	$(INSTALL) $(MSGINST) $(OBJ_DIR)/nl_messages.cat $(MSGDEST)/SUNWsamfs
	@echo "Note: Only the message catalog was installed."
	@echo "      Use pkgadd to install the rest of the files at this level."
	@echo "      All lower level install targets should work fine."
endif

include $(DEPTH)/mk/depend.mk
