USERPLUGINS=/Users/itsme/Library/Application Support/Google SketchUp 7/SketchUp/Plugins
SYSPLUGINS=/Library/Application Support/Google SketchUp 7/SketchUp/Plugins
APPDIR=/Applications/Google SketchUp 7/SketchUp.app
PLUGINS=$(USERPLUGINS)
SAMPLES=/Users/itsme/projects/sketchup/samples

install:
	mkdir -p "$(PLUGINS)"
	cp -f tuinmeubels.rb "$(PLUGINS)"
	cp -f $(SAMPLES)/parametric.rb "$(PLUGINS)"
	#cp ~/cvsprj/xda-devtools/itsutils/math/platonic.rb "$(PLUGINS)"

uninstall:
	rm -f "$(PLUGINS)/tuinmeubels.rb" "$(PLUGINS)/platonic.rb"
test:
	open "$(APPDIR)"

.PHONY: samples
samples:
	cp -f $(SAMPLES)/*.rb "$(PLUGINS)"

clean:
	$(RM) "$(USERPLUGINS)"/*.rb
