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

[ale] make



----- 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.