[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I pass $@ to Makefile?

From: Arthur Schwarz
Subject: How can I pass $@ to Makefile?
Date: Thu, 28 May 2015 10:23:08 -0700

I’m have a little program in my
        echo '#!/bin/bash'                                  >
        echo "echo $$# ' [' $$@ ']'>> test3.log" >>
        echo "echo I am a test script        >> test3.log" >>

Which works fine except the $$#. What I'm trying to do is to have:
   echo $# ' [' $@ ']

But I don't know how to do the escapes properly. And I do know that there's
a whole bunch of stuff which causes several passes through the code fragment
( -> -> Makefile (./configure before distribution)
then -> Makefile (./configure after distribution) then make .

And I don't know how to generate the correct escape so that the code meant
is the code delivered. The fall-back position is to just create the file and
used EXTRA_DIST or like facility to copy it. 

It's frustrating. Any ideas.
Maintenance turns design into chaos

reply via email to

[Prev in Thread] Current Thread [Next in Thread]