SHELL=/bin/sh DESTDIR= Bin=$(DESTDIR)$(HOME)/bin/wisp all : local other local : schemes gawks other : examples examples : cd eg && make schemes : $(foreach p, $(wildcard scheme/* ), \ (echo '#!'$(Scheme)' -qr '; cat $p)>$(Bin)/$(notdir $p); \ chmod +x $(Bin)/$(notdir $p);) gawks : $(foreach p, $(wildcard gawk/* ), \ (echo '#!'$(shell which gawk)' -f';cat $p)>$(Bin)/$(notdir $p); \ chmod +x $(Bin)/$(notdir $p);)