Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!aplcen!haven!umd5!astro.UMD.EDU!jjk From: jjk@astro.UMD.EDU (Jim Klavetter) Newsgroups: comp.unix.questions Subject: unix commands in makefiles Summary: `arch` doesn't behave in makefile definition Message-ID: <6141@umd5.umd.edu> Date: 16 Feb 90 19:57:00 GMT Sender: news@umd5.umd.edu Reply-To: jjk@astro.UMD.EDU Distribution: na Organization: University of Maryland, Astronomy Lines: 45 Running under sunos 4.0.3, I have the following in my makefile: __________________________________________________________________ DEST = $(HOME)/astrobin/`arch` ... install: $(PROGRAM) @echo Installing $(PROGRAM) in $(DEST) @install -s -g wheel $(PROGRAM) $(DEST) __________________________________________________________________ And this works as expected when I type "make install": I get my program installed in /a/jjk/astrobin/sun3 (if on a sun3). Note that this works if the program is made and I only want to install. However, with the following fragment in place: __________________________________________________________________ LIBS = $(HOME)/astro/astro.a \ $(HOME)/util/util.a \ $(HOME)/iraf/lib/`arch`/iraf.a \ /iraf/local/bin.$(FLOAT_OPTION)/libimfort.a \ /iraf/local/bin.$(FLOAT_OPTION)/libsys.a \ /iraf/local/bin.$(FLOAT_OPTION)/libvops.a \ /iraf/local/unix/bin.mc68020/libos.a \ /usr/lib/libF77.a /usr/lib/libI77.a \ /usr/lib/libm.a ... __________________________________________________________________ I get the following error message when I try to make my program: make: Fatal error: Don't know how to make target `/a/jjk/iraf/lib/`arch`/iraf.a' Obviously, the `arch` works as expected in the DEST definition, but is not getting read properly in the LIBS definition. Can someone please help me with this? Thanks Jim Klavetter jjk@astro.umd.edu Astronomy Program University of Maryland College Park, MD 20742