Makefile now longer necessary with setuptools
This commit is contained in:
parent
d406d254b4
commit
9d53f80cbf
24
Makefile
24
Makefile
|
@ -1,24 +0,0 @@
|
||||||
VERSION ?= $(shell git rev-parse --short HEAD)
|
|
||||||
|
|
||||||
release: door_admin_v$(VERSION).tar.gz
|
|
||||||
|
|
||||||
TEMPLATE_FILES = $(shell find -name '*.html')
|
|
||||||
STATIC_FILES = $(shell find -name '*.png' -o -name '*.js')
|
|
||||||
PYTHON_FILES = $(shell find -name '*.py')
|
|
||||||
ALL_FILES = $(TEMPLATE_FILES) $(STATIC_FILES) $(PYTHON_FILES)
|
|
||||||
|
|
||||||
door_admin_v$(VERSION).tar.gz: Makefile $(ALL_FILES)
|
|
||||||
tar czf $@ --transform='s,^,door_admin_$(VERSION)/,' $^
|
|
||||||
|
|
||||||
install: install_templates install_static install_python
|
|
||||||
|
|
||||||
install_static:
|
|
||||||
install -D -m 0755 -t $(PREFIX)/usr/share/door_admin/static $(STATIC_FILES)
|
|
||||||
|
|
||||||
install_templates:
|
|
||||||
install -D -m 0755 -t $(PREFIX)/usr/share/door_admin/templates $(TEMPLATE_FILES)
|
|
||||||
|
|
||||||
install_python:
|
|
||||||
install -D -m 0755 -t $(PREFIX)/bin $(PYTHON_FILES)
|
|
||||||
|
|
||||||
.PHONY: release install install_static install_templates install_python
|
|
Loading…
Reference in New Issue
Block a user