goat3d

view exporters/blendgoat/Makefile @ 60:0c3576325480

moving the exporter along slowly
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 30 Mar 2014 08:53:33 +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