[ale] make

John Heim jheim at math.wisc.edu
Tue Oct 23 15:52:00 EDT 2007


----- Original Message ----- 
From: "Jim Lynch" <ale_nospam at fayettedigital.com>
>> I want to make jheim.ldif by doing an ldap search for "uid=jheim".
>>
>> %.ldif :
>>    ldapsearch -LLL -x "uid=?" > $@
>>
>> But what goes in place of the question mark in the above rule?
>>
>> _______________________________________________
>>
> It I understand your question correctly, $* will probably work for you.
>

Ah! Excellent! So now I can also make a backup of a table thusly:

Makefile:

%.sql :
    mysqldump -u admin -p dbname $* > $@

Then if I say 'make tablename.sql', it will dump the table to tablename.sql. 
Thanks.



More information about the Ale mailing list