Summary: running a /var/yp make from a script

From: Christopher L. Barnard (cbar44@tsg.cbot.com)
Date: Fri Aug 27 2004 - 14:11:07 EDT


I asked:

> If I cd 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.

The answer:

I was being too anal. I replaced "/usr/bin/cp" with just "cp" and
"/usr/ccs/bin/make" with just "make" and it works fine.

Thanks to the dozens and dozens of people who responded almost instantly.

+-----------------------------------------------------------------------+
| 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



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:21 EDT