goat3d

view exporters/blendgoat/Makefile @ 38:60f2037680ee

split the exporter into two files to make it more readable (and maybe make an importer too at some point?)
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 07 Oct 2013 20:02:57 +0300
parents 9a211986a28b
children
line source
1 name = blendgoat
2 scriptfile = blendgoat.py
3 srcpath := $(shell pwd)/src
5 ifeq ($(shell uname -s), Darwin)
6 cfgpath = $(HOME)/Library/Application\ Support/Blender
7 else
8 cfgpath = $(HOME)/.config/blender/
9 endif
11 .PHONY: all
12 all:
13 @echo Just type \"$(MAKE) install\" to install the blender exporter.
14 @echo Also make sure you have installed the main libgoat3d library.
16 .PHONY: install
17 install:
18 @cd $(cfgpath) && \
19 for i in *; do \
20 echo "installing to $(cfgpath)/$$i/scripts/addons/$(name)"; \
21 rm -f $$i/scripts/addons/$(name)/*; \
22 mkdir -p $$i/scripts/addons/$(name); \
23 cp $(srcpath)/*.py $$i/scripts/addons/$(name)/; \
24 done
26 .PHONY: link
27 link:
28 @cd $(cfgpath) && \
29 for i in *; do \
30 echo "linking to $(cfgpath)/$$i/scripts/addons/$(name)"; \
31 mkdir -p $$i/scripts/addons; \
32 rm -rf $$i/scripts/addons/$(name); \
33 ln -s $(srcpath) $$i/scripts/addons/$(name); \
34 done
36 .PHONY: uninstall
37 uninstall:
38 cd $(cfgpath) && \
39 for i in *; do \
40 rm -rf $$i/scripts/addons/$(name); \
41 done