SWIFTS=$(wildcard ../*.swift)
PLAYGROUNDS=$(notdir $(SWIFTS:%.swift=%.playground))

all: $(PLAYGROUNDS)

%.playground: ../%.swift
	[ -d $@ ] || mkdir $@
	[ -f $@/contents.xcplayground ] || cp -p .contents.xcplayground $@/contents.xcplayground
	cp -p $< $@/Contents.swift

clean:
	rm -rf $(PLAYGROUNDS)
