[ILUG] Wildcards in makefile
Conor Daly
conor.daly_ilug at cod.homelinux.org
Mon Nov 27 18:52:14 GMT 2006
On Mon, Nov 27, 2006 at 05:07:37PM +0000 or so it is rumoured hereabouts,
Pádraig Brady thought:
> 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?
While I'd love to do something like that, I'm having difficulty in getting
people to stay long enough to become coders, never mind getting them to
learn the intricacies of .spec files. I want to put together some
reasonably generic makefiles that can be used with various of our
FORTRAN 77, FORTRAN IV, C and who knows what else sources. Even the
notion of having a manpage as well as the source is a bit advanced for us!
> If not you probably want something like:
>
> for file in ../man3/*; do \
> rm -f $(MANDIR)/`basename $file`; \
> done
>
> Pádraig.
Oooh! That'll just work will it?
Ta,
Conor
--
Conor Daly <conor.daly at cod.homelinux.org>
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/G/S/O d+(-) s:+ a+ C++(+) UL++++ US++ P>++ L+++>++++ E--- W++ !N
PS+ PE Y+ PGP? tv(-) b+++(+) G e+++(*) h-- r+++ z++++
------END GEEK CODE BLOCK------
http://www.geekcode.com/ http://www.ebb.org/ungeek/
More information about the ILUG
mailing list