#! /bin/sh
###############################################################################
#
# File:         sh-utils-1.12.after.install.sh
# RCS:          $Header: $
# Description:  make uname and stty on NeXT
# Author:       Christian Limpach <chris@nice.ch>
# Created:      Mon Apr  3 22:57:12 1995
# Modified:     Mon Apr  3 22:58:30 1995 (Christian Limpach) chris@nice.ch
# Language:     Shell-script
# Package:      N/A
# Status:       Experimental (Do Not Distribute)
#
# (C) Copyright 1995, Christian Limpach, all rights reserved.
# This is free software, and you are welcome to redistribute it
# under certain conditions; see ftp://nice.ethz.ch/users/chris/TERMS
# for details. This software comes with ABSOLUTELY NO WARRANTY.
#
###############################################################################

# run after make install

cd src
make 'CFLAGS=-posix -g -O' LDFLAGS=-posix uname stty
sed '/^RM =/ q' Makefile >Makefile2
cat >>Makefile2 <<+ 

install:
	$(INSTALL_PROGRAM) uname $(bindir)
	$(INSTALL_PROGRAM) stty $(bindir)
+
make -f Makefile2 install
rm -f Makefile2

cd ../man
sed '/^RM =/ q' Makefile >Makefile2
cat >>Makefile2 <<+ 

install:
	$(INSTALL_DATA) uname.1 $(mandir)
	$(INSTALL_DATA) stty.1 $(mandir)
+
make -f Makefile2 install
rm -f Makefile2


