Subject: bin/674: makefile bug in src/usr.bin/tn3270/{tn3720,mset}
To: None <gnats-admin@NetBSD.ORG>
From: None <jonathan@DSG.Stanford.EDU>
List: netbsd-bugs
Date: 01/02/1995 00:35:03
>Number:         674
>Category:       bin
>Synopsis:       makefile bug in usr.bin/tn3270/{tn3270,mset}
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan  2 00:35:02 1995
>Originator:     Jonathan Stone
>Organization:
	Representing self (not Stanford Distributed Systems Group)
>Release:        NetBSD-current as at 26 Dec 1994
>Environment:
	not relevant 
System: NetBSD Reno.Stanford.EDU 1.0A NetBSD 1.0A (RENO) #179: Thu Dec 29 15:37:08 PST 1994 jonathan@Reno.Stanford.EDU:/greyhawk/n1/src/NetBSD/src/sys/arch/pmax/compile/RENO pmax


>Description:
	Try doing a ``make'' in src/usr.bin/tn3270/tn3280, when
	``make obj'' has been done. (I.e,. the directory above has an
	obj/ subdirectory, or symlink to an /usr/obj/ tree.
	Make will complain that

"../../Makefile.inc", line 1: Need an operator
Fatal errors encountered -- cannot continue

	The same problem occurs in tn3270/mset.

(Diagnosis:  Going by the mtime that sup left on the Makefiles, and
 the RCS header, I'd hazard a guess that cgd goofed here...)


>How-To-Repeat:
	See above. In a clean tn32870 source tree, doing ``make obj; make''
	should suffice.

>Fix:
	The following works for me, in src/usr.bin/tn3270/tn3270.. I make no
	guarantee that it's right, I just copied the style in
	src/usr.bin/locate/locate/Makefile.

	Maybe ``.include "${.CURDIR}/../Makefile.inc"'' would be 
	stylistcally more correct.
	Whatever the appropriate fix is, src/usr.bin/tn3270/mset needs it too.


*** Makefile.DIST	Thu Dec 22 04:38:46 1994
--- Makefile	Sun Jan  1 23:42:16 1995
***************
*** 1,6 ****
  #	$Id: Makefile,v 1.11 1994/12/22 12:31:10 cgd Exp $
  
! .include <../../Makefile.inc>
  
  CFLAGS += -I${.CURDIR} -I.
  LDADD += -lcurses -ltermcap -ltelnet -lcrypt
--- 1,6 ----
  #	$Id: Makefile,v 1.11 1994/12/22 12:31:10 cgd Exp $
  
! .include "../../Makefile.inc"
  
  CFLAGS += -I${.CURDIR} -I.
  LDADD += -lcurses -ltermcap -ltelnet -lcrypt

>Audit-Trail:
>Unformatted: