goat3d
view exporters/blendgoat/Makefile @ 96:20b04b4edad4
[goat3d] removed C++11-ism from libgoat3d
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 19 May 2014 06:46:30 +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