[ILUG] Wildcards in makefile
Pádraig Brady
P at draigBrady.com
Mon Nov 27 17:07:37 GMT 2006
Conor Daly wrote:
> I have a Makefile that installs manpages (among other things).
>
> for the uninstall. Is there a form of
>
> for FILE in ../man3/*; do rm -f $(MANDIR)/man3/$FILE; done
>
> that I can use in a makefile to accomplish this?
Are you sure you don't want to use the package management
on your system to track (and remove) the installed files?
If not you probably want something like:
for file in ../man3/*; do \
rm -f $(MANDIR)/`basename $file` \
done
Pádraig.
More information about the ILUG
mailing list