Makefile revision 2
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# CDDL HEADER START
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
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#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# or http://www.opensolaris.org/os/licensing.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# See the License for the specific language governing permissions
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# and limitations under the License.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
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#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# CDDL HEADER END
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# Copyright (c) 1989, 2011, Oracle and/or its affiliates. All rights reserved.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncinclude ../Makefile.lib
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncSUBDIRS = $(MACH)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync$(BUILD64)SUBDIRS += $(MACH64)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# conditional assignments
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncall := TARGET= all
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncinstall := TARGET= install
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncclean := TARGET= clean
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncclobber := TARGET= clobber
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsynclint := TARGET= lint
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncstub := TARGET= stub
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncstubinstall := TARGET= stubinstall
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsynctest := TARGET= test
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncSCRFILES = screen/keycaps \
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync screen/curses.h \
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync screen/keyname.c \
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync screen/termcap.c \
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync screen/tifget.c \
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync screen/tiget.c \
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync screen/tifnames.c \
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync screen/tnames.c \
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync screen/tinames.c \
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync screen/term.h
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# definitions for install_h target
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncHDRS= curses.h term.h unctrl.h
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncHDRDIR= screen
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncLIBRARY= libcurses.a
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncTEXT_DOMAIN= SUNW_OST_OSLIB
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncXGETFLAGS= -a
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncMSGDIRS= screen
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncPOFILE= $(LIBRARY:.a=.po)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncPOFILES= generic.po
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncCLEANFILES += $(SCRFILES)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
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.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncscreen/term.check := CSTYLE_TAIL = | grep -v "line > 80 characters" | true
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync.KEEP_STATE:
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncall: $(SCRFILES) .WAIT $(SUBDIRS)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncinstall: all .WAIT $(SUBDIRS)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncclean clobber lint test: $(SUBDIRS)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncinstall_h: $(ROOTHDRS)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsynccheck: $(CHECKHDRS)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncscrfiles: $(SCRFILES)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncstub stubinstall : $(SUBDIRS)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync$(SUBDIRS): FRC
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync @cd $@; pwd; $(MAKE) $(TARGET)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncED = ed
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncscreen/curses.h: screen/curses.ed screen/keycaps screen/tmp
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync (cd screen; $(ED) - < curses.ed)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncscreen/keycaps: screen/caps
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync grep "KEY_" screen/caps > screen/keycaps
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync @if tail -1 screen/keycaps | grep 'KEY_MOUSE' > /dev/null;then :; \
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync else echo new keys!! must change setkeymap.c; exit 1;fi
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncscreen/keyname.c: screen/keyname.sh screen/keycaps
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync (cd screen; sh keyname.sh)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncscreen/termcap.c: screen/termcap.ed
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync (cd screen; $(ED) - < termcap.ed)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync (cd screen; $(RM) bool num str)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncscreen/tifget.c: screen/tifget.ed
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync (cd screen; $(ED) - < tifget.ed)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncscreen/tiget.c: screen/tiget.ed
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync (cd screen; $(ED) - < tiget.ed)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncscreen/tnames.c screen/tinames.c screen/tifnames.c \
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncscreen/term.h: screen/maketerm.ed
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync (cd screen; $(ED) - < maketerm.ed)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncscreen/tmp:
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync rm -rf $@
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync mkdir $@
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync_msg: $(MSGDOMAIN) .WAIT $(POFILE)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync $(RM) $(MSGDOMAIN)/$(POFILE)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync $(CP) $(POFILE) $(MSGDOMAIN)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync$(POFILE): $(POFILES)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync $(RM) $@
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync $(CAT) $(POFILES) > $@
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncgeneric.po:
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync $(RM) messages.po
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]* */*.[ch]*`
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync $(RM) messages.po
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncFRC:
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncinclude ../Makefile.targ
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync