Re: make: target-depending prerequisites?
Yves <[email protected]>
| Newsgroups | gmane.comp.gnu.utils |
|---|---|
| Organization | BELNET - The Belgian Research Network |
| Message-ID | <[email protected]> |
> > I think it would be a cleaner solution if you skipped those variables > and instead wrote something like this: > > -8<----------------------------------------- > texfiles = main1.tex main2.tex > > all_pdf = $(texfiles:.tex=.pdf) > > all: $(all_pdf) > > main1.pdf: section1.tex section3.tex > > main2.pdf: section2.tex section1.tex > > $(all_pdf): main%.pdf: main%.tex > @echo "All prerequisites:" $^ > touch $@ > -8<----------------------------------------- This is exactly what I was looking for. Thanks! Yves