Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!dali.cs.montana.edu!milton!uw-beaver!stowe.cs.washington.edu!pauld From: pauld@cs.washington.edu (Paul Barton-Davis) Newsgroups: comp.unix.questions Subject: accessing make(1) arguments Message-ID: <1991May3.225311.17578@beaver.cs.washington.edu> Date: 3 May 91 22:53:11 GMT Sender: news@beaver.cs.washington.edu (USENET News System) Organization: Computer Science & Engineering, U. of Washington, Seattle Lines: 21 Originator: pauld@stowe.cs.washington.edu is there any way to access the arguments (not just the option flags) passed to make ? I'm trying to do a heirarchical make, but need to be able to pass along command line definitions of make macros. If anyone has a better way to do this than accessing make's arguments, that would do to. As a shell script, it would be something like foo: make $(MAKEARGS) -f makefile.$(foo) This is for a system where there are multiple makefiles for different architectures, and I want to be able to say "make BLAH=BLETCH foo". thanx -- Paul Barton-Davis UW Computer Science Lab "People cannot cooperate towards common goals if they are forced to compete with each other in order to guarantee their own survival."