ok that did it. thank you so much. taget : pattern in target : patter for dependency
ulugutz wrote: > > > > Oleksandr Gavenko-2 wrote: >> >> On 27.01.2011 17:04, ulugutz wrote: >>> >>> Ahh ok i get it. Yes in your example it works fine. Maybe it's my bad >>> skill >>> in writing makefiles but it looks different from my stuff. As i create >>> pdf >>> file not only from png but also svg and so on i did not use a pattern (i >>> mean like %.pdf) as a rule. Instead i did something like this : >>> >>> PNG_FILES := $(wildcard *.png) >>> SVG_FILES := $(wildcard *.svg) >>> PDFfrompng_FILES := $(PNG_FILES:.png=.pdf) >>> PDFfromsvg_FILES := $(PNG_FILES:.svg=.pdf) >>> >>> .PHONY: all >>> all: $(PDF_FILES) >>> >>> PDFfrompng_FILES : PNG_FILES >>> cp $*.png $@ >>> ... >>> ... >> Please provide real command for PDFfrompng_FILES. >> Because there is place where I don't understand you. >> >> I suggest to append these lines to your example to make you need: >> >> PDF_FILES = $(PDFfrompng_FILES) $(PDFfromsvg_FILES) >> >> $(PDFfrompng_FILES) : %.pdf: %.png >> cp $*.png $@ >> >> $(PDFfromsvg_FILES) : %.pdf: %.svg >> cp $*.svg $@ >> >> and so on for any other file type. >> > > yes the commands are somewhat different for each file types. png are > actually just getting linked (ln -s) but eps (eps2pdf) and svg (inkscape > export as pdf) will be transfromed into pdfs. > now in your example I see something new taget: prerequ : whatisthis? > is will check what is does and come back to you... > > -- View this message in context: http://old.nabble.com/target-variable-%28%24%40%29-as-prerequisite-tp30764986p30796955.html Sent from the Gnu - Make - Help mailing list archive at Nabble.com. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
