running a /var/yp make from a script

From: Christopher L. Barnard (cbar44_at_tsg.cbot.com)
Date: 08/27/04

  • Next message: Lal, Kumundani (cognizant): "/usr/lib/ld.so.1 overwritten by /etc/lib/ld.so.1"
    Date: Fri, 27 Aug 2004 11:16:44 -0500 (CDT)
    To: sunmanagers@sunmanagers.org
    
    

    If I cc into the /var/yp directory and type "make", it uses the Makefile
    in that directory. I am writing a script that will do an NIS make when
    the script is run. However, I am unable to get it to work properly. I
    have tried to put the appropriate cd command on the line above, and I have
    tried putting an "-f /var/yp/Makefile" after the /usr/ccs/bin/make, but I
    still get the error

    make: Warning: Don't know how to make target `all'
    Current working directory /opt/local/bin
    make: Warning: Target `all' not remade because of errors
    Current working directory /opt/local/bin
    *** Error code 1
    make: Fatal error: Command failed for target `k'

    Any suggestions what else to try?

    TIA and I will summarize.
    +-----------------------------------------------------------------------+
    | Christopher L. Barnard O When I was a boy I was told that |
    | cbarnard@tsg.cbot.com / \ anybody could become president. |
    | (312) 347-4901 O---O Now I'm beginning to believe it. |
    | http://www.cs.uchicago.edu/~cbarnard --Clarence Darrow |
    +----------PGP public key available via finger or PGP keyserver---------+
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Lal, Kumundani (cognizant): "/usr/lib/ld.so.1 overwritten by /etc/lib/ld.so.1"

    Relevant Pages

    • /usr/sbin/ypinit -m aborts
      ... make: Fatal error: Command failed for target `k' ... NIS servers. ... make: Warning: Don't know how to make target ... Current working directory /var/yp ...
      (SunManagers)
    • Re: Questions About Upgrading to dependency based boot
      ... script behind, package dovecot-common removed but not purged, package ... overrides, insserv: warning: script 'K01nxsensor' missing LSB tags ...
      (Debian-User)
    • Re: readdir formulated badly? gives wrong count
      ... Sometimes there might be some numbered files already in the target ... I'll probably try to turn the perl script into something more general ... You are doing boolean tests on the contents of array elements when you ... sub usage { ...
      (perl.beginners)
    • Re: .old files being created by root
      ... The external program running on another server but connected to the overall system network apparently picks them up with an ftp program. ... the other end must be running a script (not a human logging in ... She should be in the target directory or some directory ... you never said if this is an SCO UNIX OS or Linux or some other UNIX. ...
      (comp.unix.sco.misc)
    • "Malicious script" upon opening Help & Support center
      ... MaliciousScript detected ... Your computer is halted and needs to do something about this script ... As long as I don't press the OK button on the Norton warning, ... calling an HTA file to do its tasks. ...
      (microsoft.public.windowsxp.security_admin)