Missing start of conversation

The start of this conversation is missing — it may have been edited or deleted. The replies are shown below.

@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 or Register to join in on this yarn.