Makefile revision 2
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# CDDL HEADER START
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# The contents of this file are subject to the terms of the
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# Common Development and Distribution License (the "License").
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# You may not use this file except in compliance with the License.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# See the License for the specific language governing permissions
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# and limitations under the License.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# When distributing Covered Code, include this CDDL HEADER in each
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# If applicable, add the following below this CDDL HEADER, with the
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# CDDL HEADER END
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# Copyright (c) 1989, 2011, Oracle and/or its affiliates. All rights reserved.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# conditional assignments
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsynctest := TARGET= test
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# definitions for install_h target
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# term.h doesn't pass cstyle due to numerous lines exceeding the 80 character
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# limit. maketerm.ed can probably be fixed to prevent this, but it is arguable
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# if this work would ever be worth it.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncscreen/term.check := CSTYLE_TAIL = | grep -v "line > 80 characters" | true
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncscreen/curses.h: screen/curses.ed screen/keycaps screen/tmp
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync @if tail -1 screen/keycaps | grep 'KEY_MOUSE' > /dev/null;then :; \
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync else echo new keys!! must change setkeymap.c; exit 1;fi
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncscreen/tnames.c screen/tinames.c screen/tifnames.c \
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]* */*.[ch]*`
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@