Skip to main content
added 156 characters in body
Source Link
Pietru
  • 403
  • 4
  • 18

I am using the following makefile to run the command

texi2pdf 06a-amcoh.texi

But I also have two other files, namely 06a-amcoh-igm.texi and 06a-amcoh-rfc.texi, which I also want to be able to call texi2pdf 06a-amcoh-igm.texi and texi2pdf 06a-amcoh-rfc.texi.

How may I modify the makefile to be able to call texi2pdf for the specific files.

.PHONY: all new again clean

ch6 := $(wildcard *amcoh.texi)
igm := $(wildcard *igm.texi)
rfc := $(wildcard *rfc.texi)

pdfs := 06a-amcoh$(tfiles:.texi=.pdf)

all: ${pdfs}

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

clean:
    rm -f ${pdfs}

again:
    ${MAKE} clean
    ${MAKE}

new:
    ${MAKE} again

I am using the following makefile to run the command

texi2pdf 06a-amcoh.texi

But I also have two other files, namely 06a-amcoh-igm.texi and 06a-amcoh-rfc.texi, which I also want to be able to call texi2pdf 06a-amcoh-igm.texi and texi2pdf 06a-amcoh-rfc.texi.

How may I modify the makefile to be able to call texi2pdf for the specific files.

pdfs := 06a-amcoh.pdf

all: ${pdfs}

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

clean:
    rm -f ${pdfs}

again:
    ${MAKE} clean
    ${MAKE}

new:
    ${MAKE} again

I am using the following makefile to run the command

texi2pdf 06a-amcoh.texi

But I also have two other files, namely 06a-amcoh-igm.texi and 06a-amcoh-rfc.texi, which I also want to be able to call texi2pdf 06a-amcoh-igm.texi and texi2pdf 06a-amcoh-rfc.texi.

How may I modify the makefile to be able to call texi2pdf for the specific files.

.PHONY: all new again clean

ch6 := $(wildcard *amcoh.texi)
igm := $(wildcard *igm.texi)
rfc := $(wildcard *rfc.texi)

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

all: ${pdfs}

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

clean:
    rm -f ${pdfs}

again:
    ${MAKE} clean
    ${MAKE}

new:
    ${MAKE} again
Source Link
Pietru
  • 403
  • 4
  • 18

Makefile with selection

I am using the following makefile to run the command

texi2pdf 06a-amcoh.texi

But I also have two other files, namely 06a-amcoh-igm.texi and 06a-amcoh-rfc.texi, which I also want to be able to call texi2pdf 06a-amcoh-igm.texi and texi2pdf 06a-amcoh-rfc.texi.

How may I modify the makefile to be able to call texi2pdf for the specific files.

pdfs := 06a-amcoh.pdf

all: ${pdfs}

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

clean:
    rm -f ${pdfs}

again:
    ${MAKE} clean
    ${MAKE}

new:
    ${MAKE} again