]> git.ipfire.org Git - collecty.git/blob - Makefile
Add some command line flags and help.
[collecty.git] / Makefile
1
2 NAME = collecty
3 VERSION = 0.0.1
4
5 DESTDIR =
6 PYTHON_VER := $(shell python --version 2>&1 | awk '{ print $$NF }')
7 PYTHON_DIR = $(DESTDIR)/usr/lib/python$(PYTHON_VER)/site-packages/$(NAME)/
8
9 all:
10
11 dist:
12 git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD | gzip -9 \
13 > $(NAME)-$(VERSION).tar.gz
14
15 install:
16 -mkdir -pv $(PYTHON_DIR)
17 cp -rvf collecty $(PYTHON_DIR)
18 install -v -m 755 colletyd $(DESTDIR)/usr/sbin
19
20 -mkdir -pv $(DESTDIR)/var/rrd
21
22 # Install configuration
23 -mkdir -pv $(DESTDIR)/etc/$(NAME)/
24 cp -vf example.conf $(DESTDIR)/etc/$(NAME)/$(NAME).conf