nuclear@38: name = blendgoat nuclear@36: scriptfile = blendgoat.py nuclear@38: srcpath := $(shell pwd)/src nuclear@36: nuclear@36: ifeq ($(shell uname -s), Darwin) nuclear@36: cfgpath = $(HOME)/Library/Application\ Support/Blender nuclear@36: else nuclear@36: cfgpath = $(HOME)/.config/blender/ nuclear@36: endif nuclear@36: nuclear@36: .PHONY: all nuclear@36: all: nuclear@36: @echo Just type \"$(MAKE) install\" to install the blender exporter. nuclear@36: @echo Also make sure you have installed the main libgoat3d library. nuclear@36: nuclear@36: .PHONY: install nuclear@36: install: nuclear@36: @cd $(cfgpath) && \ nuclear@36: for i in *; do \ nuclear@38: echo "installing to $(cfgpath)/$$i/scripts/addons/$(name)"; \ nuclear@38: rm -f $$i/scripts/addons/$(name)/*; \ nuclear@38: mkdir -p $$i/scripts/addons/$(name); \ nuclear@38: cp $(srcpath)/*.py $$i/scripts/addons/$(name)/; \ nuclear@36: done nuclear@36: nuclear@36: .PHONY: link nuclear@36: link: nuclear@38: @cd $(cfgpath) && \ nuclear@38: for i in *; do \ nuclear@38: echo "linking to $(cfgpath)/$$i/scripts/addons/$(name)"; \ nuclear@38: mkdir -p $$i/scripts/addons; \ nuclear@38: rm -rf $$i/scripts/addons/$(name); \ nuclear@38: ln -s $(srcpath) $$i/scripts/addons/$(name); \ nuclear@38: done nuclear@38: nuclear@38: .PHONY: uninstall nuclear@38: uninstall: nuclear@36: cd $(cfgpath) && \ nuclear@36: for i in *; do \ nuclear@38: rm -rf $$i/scripts/addons/$(name); \ nuclear@36: done