goat3d
annotate exporters/blendgoat/Makefile @ 69:66cd8266f078
fixed animation export
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 21 Apr 2014 03:44:10 +0300 |
parents | 9a211986a28b |
children |
rev | line source |
---|---|
nuclear@38 | 1 name = blendgoat |
nuclear@36 | 2 scriptfile = blendgoat.py |
nuclear@38 | 3 srcpath := $(shell pwd)/src |
nuclear@36 | 4 |
nuclear@36 | 5 ifeq ($(shell uname -s), Darwin) |
nuclear@36 | 6 cfgpath = $(HOME)/Library/Application\ Support/Blender |
nuclear@36 | 7 else |
nuclear@36 | 8 cfgpath = $(HOME)/.config/blender/ |
nuclear@36 | 9 endif |
nuclear@36 | 10 |
nuclear@36 | 11 .PHONY: all |
nuclear@36 | 12 all: |
nuclear@36 | 13 @echo Just type \"$(MAKE) install\" to install the blender exporter. |
nuclear@36 | 14 @echo Also make sure you have installed the main libgoat3d library. |
nuclear@36 | 15 |
nuclear@36 | 16 .PHONY: install |
nuclear@36 | 17 install: |
nuclear@36 | 18 @cd $(cfgpath) && \ |
nuclear@36 | 19 for i in *; do \ |
nuclear@38 | 20 echo "installing to $(cfgpath)/$$i/scripts/addons/$(name)"; \ |
nuclear@38 | 21 rm -f $$i/scripts/addons/$(name)/*; \ |
nuclear@38 | 22 mkdir -p $$i/scripts/addons/$(name); \ |
nuclear@38 | 23 cp $(srcpath)/*.py $$i/scripts/addons/$(name)/; \ |
nuclear@36 | 24 done |
nuclear@36 | 25 |
nuclear@36 | 26 .PHONY: link |
nuclear@36 | 27 link: |
nuclear@38 | 28 @cd $(cfgpath) && \ |
nuclear@38 | 29 for i in *; do \ |
nuclear@38 | 30 echo "linking to $(cfgpath)/$$i/scripts/addons/$(name)"; \ |
nuclear@38 | 31 mkdir -p $$i/scripts/addons; \ |
nuclear@38 | 32 rm -rf $$i/scripts/addons/$(name); \ |
nuclear@38 | 33 ln -s $(srcpath) $$i/scripts/addons/$(name); \ |
nuclear@38 | 34 done |
nuclear@38 | 35 |
nuclear@38 | 36 .PHONY: uninstall |
nuclear@38 | 37 uninstall: |
nuclear@36 | 38 cd $(cfgpath) && \ |
nuclear@36 | 39 for i in *; do \ |
nuclear@38 | 40 rm -rf $$i/scripts/addons/$(name); \ |
nuclear@36 | 41 done |