ISO_SOURCES= $(wildcard *.iso) IMAGE_SOURCES = $(wildcard *.img) SOURCES = $(ISO_SOURCES) $(IMAGE_SOURCES) CWD := $(shell pwd) all: SHA1SUMS lsrals torrents lsrals: $(subst .iso,.iso.ls-Ral,$(ISO_SOURCES)) torrents: $(subst .iso,.iso.torrent,$(ISO_SOURCES)) $(subst .img,.img.torrent,$(IMAGE_SOURCES)) clean: rm -f *.ls-Ral *.torrent SHA1SUMS SHA1SUMS: $(SOURCES) sha1sum $(SOURCES) |gpg --comment "See http://ftp.frugalware.org/pub/README.GPG for info" \ --clearsign -u 20F55619 > SHA1SUMS %.iso.ls-Ral: %.iso mnt=`mktemp -d`; \ fuseiso $< $$mnt; \ cd $$mnt; \ ls -lR |sed "s/`whoami` users//">$(CWD)/$@; \ cd - >/dev/null; \ fusermount -u $$mnt; \ rmdir $$mnt %.torrent: % maketorrent-console \ --title "Frugalware ISO: $<" \ --comment "Visit us at http://www.frugalware.org/." \ --no_use_tracker \ router.bittorrent.com:6881 \ $< \ --target $@