automake
[Top][All Lists]
Advanced

[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 makefile.am:

test3.abc:
        echo '#!/bin/bash'                                  > test3.abc
        echo "echo test3.abc $$# ' [' $$@ ']'>> test3.log" >> test3.abc
        echo "echo I am a test script        >> test3.log" >> test3.abc

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

test3.abc
   echo test3.abc $# ' [' $@ ']

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.am -> Makefile.in -> Makefile (./configure before distribution)
then Makfile.in -> 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]