[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] make
- Subject: [ale] make
- From: jheim at math.wisc.edu (John Heim)
- Date: Tue Oct 23 15:52:00 2007
- References: <03f601c8159b$ba6b0870$4ba65c90@vv507j> <[email protected]>
----- 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.
- References:
- [ale] make
- From: jheim at math.wisc.edu (John Heim)
- [ale] make
- From: ale_nospam at fayettedigital.com (Jim Lynch)