Why does nmake ignore my implicit rule? -


i need little nmake makefile build process. file types txt , pdf. therefore added inference rule makfile. nmake ignores completely. what's wrong?

number=123 targets=a-$(number).pdf b-$(number).pdf sources=$(targets:pdf=txt)  .txt.pdf:     copy $*.txt $*.pdf  all: test build  #this rule creates sample source files setup:     echo hungry > a-$(number).txt     echo thursty > b-$(number).txt  #this rule checks generated macros test:     @echo sources: $(sources)     @echo targets: $(targets)     dir /b $(sources)  build: $(targets) 

all nmake makefile is:

nmake : fatal error u1073: don't know how make 'a-123.pdf' 

i think ".txt.pdf:" recognized implicit rule, both extensions have in list of suffixes. try adding

.suffixes: .txt .pdf 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -