goat3d

annotate 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
rev   line source
nuclear@36 1 scriptfile = blendgoat.py
nuclear@36 2 scriptfile_path := $(shell pwd)/src/$(scriptfile)
nuclear@36 3
nuclear@36 4 ifeq ($(shell uname -s), Darwin)
nuclear@36 5 cfgpath = $(HOME)/Library/Application\ Support/Blender
nuclear@36 6 else
nuclear@36 7 cfgpath = $(HOME)/.config/blender/
nuclear@36 8 endif
nuclear@36 9
nuclear@36 10 .PHONY: all
nuclear@36 11 all:
nuclear@36 12 @echo Just type \"$(MAKE) install\" to install the blender exporter.
nuclear@36 13 @echo Also make sure you have installed the main libgoat3d library.
nuclear@36 14
nuclear@36 15 .PHONY: install
nuclear@36 16 install:
nuclear@36 17 @cd $(cfgpath) && \
nuclear@36 18 for i in *; do \
nuclear@36 19 echo "installing src/$(scriptfile) -> $(cfgpath)/$$i/scripts/addons/$(scriptfile)"; \
nuclear@36 20 mkdir -p $$i/scripts/addons; \
nuclear@36 21 rm -f $$i/scripts/addons/$(scriptfile); \
nuclear@36 22 cp $(scriptfile_path) $$i/scripts/addons/$(scriptfile); \
nuclear@36 23 done
nuclear@36 24
nuclear@36 25 .PHONY: link
nuclear@36 26 link:
nuclear@36 27 cd $(cfgpath) && \
nuclear@36 28 for i in *; do \
nuclear@36 29 echo "linking src/$(scriptfile) to $(cfgpath)/$$i/scripts/addons/$(scriptfile)"; \
nuclear@36 30 mkdir -p $$i/scripts/addons; \
nuclear@36 31 rm -f $$i/scripts/addons/$(scriptfile); \
nuclear@36 32 ln -s $(scriptfile_path) $$i/scripts/addons/$(scriptfile); \
nuclear@36 33 done