Yarn

Recent twts in reply to #pojjmea

@adi@f.adi.onl Ugh sorry for not replying. If the file list is dynamic, usually you use something like autoconf to generate the Makefile. I’ve also used wildcards in the past and that works okay. You should be able to use shell commands to populate the file list.

⤋ Read More

@adi@f.adi.onl What about this one?

SRCFILES = $(wildcard *)
# remove existing *.gz (actually doubles entries)
CLEANSRC = $(SRCFILES:.gz=)
DSTFILES = $(addsuffix .gz, $(CLEANSRC))

%.gz: %
	gzip -c  $< > $<.gz

all: $(DSTFILES)

You must not have subdirectories in that folder, though.

⤋ Read More

Participate

Login to join in on this yarn.