Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!oliveb!pyramid!prls!mips!dce From: dce@mips.UUCP Newsgroups: comp.unix.questions Subject: Re: .hushlogin Message-ID: <398@quacky.UUCP> Date: Fri, 15-May-87 23:22:18 EDT Article-I.D.: quacky.398 Posted: Fri May 15 23:22:18 1987 Date-Received: Sat, 16-May-87 21:30:45 EDT References: <7407@brl-adm.ARPA> Reply-To: dce@quacky.UUCP (David Elliott) Organization: MIPS Computer Systems, Sunnyvale, CA Lines: 50 In article <7407@brl-adm.ARPA> MARSELLE%gmr.com@RELAY.CS.NET writes: > >If I use a .hushlogin which looks like this: > >.hushlogin: /etc/motd > cat /etc/motd > touch .hushlogin > >I get: >Make: No arguments or description file. Stop. > This is very obscure, but documented (I don't remember where, but I found it when I was rewriting the make manual page at Tektronix). The idea is that the "default target" is the first target in the file that does not begin with a '.'. This is done so that you can do things like .SUFFIXES: .c .s ... ... all: $(PGM) ... and be able to say 'make' and mean 'make all'. The easiest solution is to add the line all: .hushlogin at the end of the file, so you end up with: .hushlogin: /etc/motd @-cat /etc/motd @-touch .hushlogin all: .hushlogin (The '@-' tells make to ignore exit codes and to not print the data.) Still, all this is no better than find /etc/motd -newer .hushlogin -exec cat '{}' \; touch .hushlogin If you really want to see /etc/motd when it changes, use the "cmp" stuff. -- David Elliott {decvax,ucbvax,ihnp4}!decwrl!mips!dce