I am trying to write a makefile which will compress (zip) all the folders in my current working directory. What I got so far is:
SUBDIRS := $(wildcard */)
ZIPS := $(addsuffix .zip,$(subst /,,$(SUBDIRS)))
$(ZIPS) : %.zip : | %
zip $@ $*/*
dist: $(ZIPS)
(from Makefile: Generating zip files of all sub folders)
this does however only generate a zip file of the first folder in my current working directory (I would like to generate zips of all).