goat3d

view exporters/blendgoat/Makefile @ 103:45a9d493e98c

fixed the input latency issue by calling QWidget::update() instead of QGLWidget::updateGL() update schedules an update instead of redrawing immediately.
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 12 Sep 2015 17:40:02 +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