Skip to main content
3 of 5
added 97 characters in body
guest_7
  • 5.8k
  • 1
  • 8
  • 13

You need to include their names in the pdfs list.

But the idiomatic way to do it is to start from source (in your case the .texi files) and from them, dynamically generate the output list (in your case .pdf files)

Also, you should mark the targets as .PHONY for which no corresponding file exists.

.PHONY: all new again clean


texis := $(wildcard *.texi)

pdfs := $(texis:.texi=.pdf)

all: ${pdfs}

%.pdf: %.texi
    texi2pdf $< -o $@

clean:
    rm -f ${pdfs}

again:
    ${MAKE} clean
    ${MAKE}

new:
    ${MAKE} again

Now invoke make as :

make texis="06a-amcoh.texi 06a-amcoh-igm.texi 06a-amcoh-rfc.texi" 
guest_7
  • 5.8k
  • 1
  • 8
  • 13