How does a makefile look like that makes a target for every extension?
My current makefile:
SOURCES=*.gnuplot
TARGETS=$(SOURCES:.gnuplot=.pdf)
all: $(TARGETS)
%.pdf: %.gnuplot
cp $< $@
The problem is that there is only 1 target: *.pdf and not test.pdf as I wanted.
How can I let this make file make a pdf file for every gnuplot file?
SOURCES = $(wildcard *.gnuplot)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With