aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: 03e82dd46f843d704975f993d04a4150fcafd54f (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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

MAKE_ARGS = \
	prefix=/usr \
	CGIT_SCRIPT_PATH=/usr/lib/cgi-bin \
	CGIT_DATA_PATH=/usr/share/cgit/htdocs

%:
	dh $@ 

override_dh_auto_clean:
	dh_auto_clean
	rm -rf .depend
	cd git; if test -e .git; then git clean -ffdx; else make distclean; fi

override_dh_auto_configure:

override_dh_auto_build:
	dh_auto_build -- $(MAKE_ARGS) all doc

override_dh_auto_test:

override_dh_auto_install:
	dh_auto_install -- $(MAKE_ARGS) install-doc
	install -m 0644 debian/examples/cgitrc debian/cgit/etc
	install -m 0644 debian/examples/apache2.conf debian/cgit/etc/apache2/conf-available/cgit.conf