blob: ced020bfdd5ee6b6d3a5d7a3a61387893de4a10b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
VERSION = 0.0.1
PREFIX = /usr/local
FILES = \
Backend.py \
Config.py \
Pivot.py \
slapd-pivot.py \
Makefile
SUBDIRS = \
files
all:
@echo "usage: make install"
@echo " make dist [PREFIX=/path]"
dist:
tar -jcvf slapd-pivot-$(VERSION).tbz \
--exclude '*.pyc' --exclude 'test' --exclude '*.tbz' \
--exclude '*.tar.bz2' --exclude '\.*' \
$(FILES) $(SUBDIRS)
install:
chmod +x slapd-pivot.py
cp files/slapd-pivot.conf.sample $(PREFIX)/etc/slapd-pivot.conf.sample
ln -sf `pwd`/slapd-pivot.py $(PREFIX)/sbin/slapd-pivot
|