aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
blob: 0a0a6478e00d0e19aaa194fedf636109c56221f6 (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
29
30
31
32
33
34
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
 
ifeq ($(wildcard debian/control),)
ifeq ($(DEB_AUTO_UPDATE_DEBIAN_CONTROL),)
advice_about_control := yes
endif
endif
 
ifeq ($(advice_about_control),yes)
advice-on-debian-control %::
@echo "It seems you are building from pristine source and"
@echo "debian/control is missing. It will be autogenerated"
@echo "if you say:"
@echo
@echo "  ./debian/rules generate"
@echo
@exit 1
else
 
DEB_PYTHON_SYSTEM := pysupport
 
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
 
clean::
rm -rf dist gitosis.egg-info
endif
 
 
generate::
# I wish this was atomic
cp debian/control.in debian/control
fakeroot env DEB_AUTO_UPDATE_DEBIAN_CONTROL=1 ./debian/rules clean