help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Makefile for texinfo


From: lisa-asket
Subject: Makefile for texinfo
Date: Mon, 28 Jun 2021 06:35:53 +0200 (CEST)

I have three files 



06-ch.texi

06-ig.texi

06-rf.texi
and want to run texi2pdf on a specific file.  Would not like to touch the 
makefile
everytime, so I must supply the .texi files to make from the command line.


--------

.PHONY: all new again clean

ch := $(wildcard *ch.texi)
ig := $(wildcard *ig.texi)
rf := $(wildcard *rf.texi)

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

all: ${pdfs}

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

clean:
    rm -f ${pdfs}

again:
    ${MAKE} clean
    ${MAKE}

new:
    ${MAKE} again


reply via email to

[Prev in Thread] Current Thread [Next in Thread]