goat3d

view exporters/blendgoat/Makefile @ 58:d317eb4f83da

- made everything compile properly on windows again - removed libanim/libvmath, we'll use them as external dependencies - added new maxgoat_stub 3dsmax plugin project. Gets loaded as a max plugin and loads the actual maxgoat (and later maxgoat_anim) exporters on demand, to allow reloading the actual exporters without having to restart 3dsmax (which takes AGES).
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 25 Mar 2014 03:19:55 +0200
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