X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=c33b594cc95ef2e70fe8e9d6dfae942bff1865f5;hb=557959f0e08f90646409d70f0231186d7a612c34;hp=c267b499b325b7eac923c3ccbc30b298fe05bbf5;hpb=a3926fc96d8e29d27ab4f85f2f6210c75e431bad;p=unfold.git diff --git a/Makefile b/Makefile index c267b499..c33b594c 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,24 @@ -### -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 @@ -71,7 +86,7 @@ all-static: clean-static run-static #################### 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