[ILUG] more makefile question

From: Conor Daly (conor.daly at domain met.ie)
Date: Sun 24 Jun 2001 - 18:42:22 IST


I have a makefile like this:

myprog: myprog.c
        cc -Wall -o myprog myprog.c -L/lib -L/usr/lib -L/usr/local/lib
-L${II_SYSTEM}/ingres/lib -linterp.1 -lframe.1 -lq.1 -lcompat.1 -ldl -lcrypt

myprog.c: myprog.sc
# esqlc -p
        esqlc -p myprog.sc

if I include the filename on the "esqlc -p" line, all goes swimmingly but if
I leave it out, i get an interactive session with esqlc. The guy who sent
me the makefile was using the line without a filename ie.

        esqlc -p

Is there something I'm missing or did he just forget? Is there a way to
have make use the filenames on the target line for the rules without having
to type them again?

Conor (who really should have made it to the AGM for those make and autoconf
talks!)

-- 
Conor Daly 
Met Eireann, Glasnevin Hill, Dublin 9, Ireland
Ph +353 1 8064276 Fax +353 1 8064275
------------------------------------
  5:30pm  up 31 days,  4:32, 13 users,  load average: 2.01, 2.02, 2.05


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:50 GMT