-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
49 lines (41 loc) · 1.69 KB
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
info:
@echo "make clean - remove all automatically created files"
@echo "make epydoc - create the API documentation"
@echo "make doc-man - create the documentation as man-page"
@echo "make doc-html - create the documentation as html"
@echo "make pypi - upload package to pypi"
@echo "make debianzie - prepare the debian build environment in DEBUILD"
@echo "make builddeb - build .deb file locally on ubuntu 14.04LTS!"
@echo "make venvdeb - build .deb file, that contains the whole setup in a virtualenv."
@echo "make translate - translate WebUI"
#VERSION=1.3~dev5
VERSION=3.0
SRCDIRS=authappliance
SRCFILES=setup.py Makefile Changelog LICENSE requirements.txt tools
LOCAL_SERIES=`lsb_release -a | grep Codename | cut -f2`
clean:
find . -name \*.pyc -exec rm {} \;
rm -fr build/
rm -fr dist/
rm -fr DEBUILD
rm -fr RHBUILD
rm -fr cover
rm -f .coverage
debianize:
make clean
mkdir -p DEBUILD/pi-appliance.org/debian
cp -r ${SRCDIRS} ${SRCFILES} DEBUILD/pi-appliance.org || true
# We need to touch this, so that our config files
# are written to /etc
touch DEBUILD/pi-appliance.org/PRIVACYIDEA_PACKAGE
cp LICENSE DEBUILD/pi-appliance.org/debian/copyright
(cd DEBUILD; tar -zcf pi-appliance_${VERSION}.orig.tar.gz --exclude=pi-appliance.org/debian pi-appliance.org)
builddeb:
make debianize
################## Renew the changelog
cp -r debian/* DEBUILD/pi-appliance.org/debian/
sed -e s/"xenial) xenial; urgency"/"$(LOCAL_SERIES)) $(LOCAL_SERIES); urgency"/g debian/changelog > DEBUILD/pi-appliance.org/debian/changelog
################# Build
(cd DEBUILD/pi-appliance.org; debuild --no-lintian)
git-update:
git submodule update --recursive --remote