goat3d

view exporters/blendgoat/Makefile @ 37:d259a5094390

trying to figure out how to properly call C functions from the python plugin
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 06 Oct 2013 17:42:43 +0300
parents
children 60f2037680ee
line source
1 scriptfile = blendgoat.py
2 scriptfile_path := $(shell pwd)/src/$(scriptfile)
4 ifeq ($(shell uname -s), Darwin)
5 cfgpath = $(HOME)/Library/Application\ Support/Blender
6 else
7 cfgpath = $(HOME)/.config/blender/
8 endif
10 .PHONY: all
11 all:
12 @echo Just type \"$(MAKE) install\" to install the blender exporter.
13 @echo Also make sure you have installed the main libgoat3d library.
15 .PHONY: install
16 install:
17 @cd $(cfgpath) && \
18 for i in *; do \
19 echo "installing src/$(scriptfile) -> $(cfgpath)/$$i/scripts/addons/$(scriptfile)"; \
20 mkdir -p $$i/scripts/addons; \
21 rm -f $$i/scripts/addons/$(scriptfile); \
22 cp $(scriptfile_path) $$i/scripts/addons/$(scriptfile); \
23 done
25 .PHONY: link
26 link:
27 cd $(cfgpath) && \
28 for i in *; do \
29 echo "linking src/$(scriptfile) to $(cfgpath)/$$i/scripts/addons/$(scriptfile)"; \
30 mkdir -p $$i/scripts/addons; \
31 rm -f $$i/scripts/addons/$(scriptfile); \
32 ln -s $(scriptfile_path) $$i/scripts/addons/$(scriptfile); \
33 done