-###
-all:
- @echo no default target
+### first purpose, build and install from the specfile
+all: build
force:
+DESTDIR := /
+datadir := /usr/share
+bindir := /usr/bin
+
+PWD := $(shell pwd)
+
+build: static templates
+ python setup.py build
+
+install:
+ python setup.py install \
+ --install-purelib=$(DESTDIR)/$(datadir)/myslice \
+ --install-scripts=$(DESTDIR)/$(datadir)/myslice \
+ --install-data=$(DESTDIR)/$(datadir)/myslice
+
+
#################### compute emacs tags
# list files under git but exclude third-party stuff like bootstrap and jquery
myfiles: force
#################### manage templates for the plugin area
templates run-templates templates-run: force
mkdir -p all-templates
- ln -sf $(foreach x,$(shell $(MAKE) list-templates),.../$(x)) ./all-templates
+ ln -sf $(foreach x,$(shell $(MAKE) list-templates),../$(x)) ./all-templates
# rsync -av $(shell $(MAKE) list-templates) ./all-templates
clean-templates templates-clean: force