File: rules

package info (click to toggle)
codeville 0.8.0-2.1
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 1,140 kB
  • sloc: python: 10,335; ansic: 89; sh: 62; makefile: 25
file content (47 lines) | stat: -rwxr-xr-x 2,033 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-
# Debian rules file for codeville
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

################################################################################
# CDBS File Inclusions and Variable Declarations
################################################################################

DEB_PYTHON2_MODULE_PACKAGES=codeville

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

# Careful, fails to recognize epochs
UPSTREAM_VERSION=$(shell dpkg-parsechangelog|sed -n -e 's/^Version: \(.*\)-.*/\1/ p')

# Pure python library for site-python directory
#DEB_PYTHON_INSTALL_ARGS_ALL = --no-compile -O0 --install-purelib=/usr/lib/site-python

doc-update: doc-update-stamp
doc-update-stamp:
	@echo "Fetching documentation from site and wiki."
	lynx -dump http://codeville.org/news.php > debian/NEWS.upstream
	lynx -dump http://codeville.org/doc//QuickStartGuide > debian/QuickStartGuide.txt
	lynx -source http://codeville.org/doc//QuickStartGuide > debian/QuickStartGuide.html
	lynx -dump http://codeville.org/doc/ServerReference > debian/ServerReference.txt
	lynx -source http://codeville.org/doc/ServerReference > debian/ServerReference.html
	lynx -dump http://codeville.org/doc/ClientReference > debian/ClientReference.txt
	lynx -source http://codeville.org/doc/ClientReference > debian/ClientReference.html
	lynx -dump http://codeville.org/doc/ToDoList > debian/ToDoList.txt
	lynx -source http://codeville.org/doc/ToDoList > debian/ToDoList.html
	: > $@

# codeville tries to install documentation in the Right Place(TM), but
# gets it wrong for Debian.  Already included the LICENSE.txt in the
# copyright file.
install/codeville::
	mkdir -p debian/codeville/etc
	mv debian/codeville/usr/share/doc/Codeville-$(UPSTREAM_VERSION)/cdvserver.conf.sample \
		debian/codeville/etc/cdvserver.conf
	rm -rf debian/codeville/usr/share/doc/Codeville-$(UPSTREAM_VERSION)

clean::
	-find -name \*.pyc -exec rm \{\} \;
	-rm doc-update-stamp