File: rules

package info (click to toggle)
source-highlight 3.1.8-1.2
  • links: PTS
  • area: main
  • in suites: buster, sid
  • size: 10,220 kB
  • sloc: sh: 11,709; cpp: 10,226; ansic: 9,521; makefile: 1,902; lex: 1,200; yacc: 1,021; php: 213; perl: 211; awk: 98; erlang: 94; lisp: 90; java: 75; ruby: 69; python: 61; asm: 43; ada: 36; ml: 29; haskell: 27; xml: 23; cs: 11; sql: 8; tcl: 7; sed: 4
file content (49 lines) | stat: -rwxr-xr-x 1,234 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk

config.status: configure
	dh_testdir
	aclocal-1.11 -I m4 -I gl/m4
	automake-1.11
	dh_autotools-dev_updateconfig
	dh_auto_configure -- \
		--enable-warnings \
		--with-bash-completion=/usr/share/bash-completion/completions \
		--with-boost-regex=boost_regex

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp: config.status
	dh_testdir
	dh_auto_build
	dh_auto_test
	touch $@

clean:
	dh_testdir
	dh_testroot
	dh_auto_clean
	dh_autotools-dev_restoreconfig
	rm -f `find -name Makefile.in`
	rm -f aclocal.m4
	dh_clean

DESTDIR=$(CURDIR)/debian/tmp

override_dh_install:
	rm $(DESTDIR)/usr/share/doc/source-highlight/INSTALL*
	rm $(DESTDIR)/usr/share/doc/source-highlight/COPYING*
	rm $(DESTDIR)/usr/bin/cpp2html
	rm $(DESTDIR)/usr/bin/java2html
	mv $(DESTDIR)/usr/bin/src-hilite-lesspipe.sh $(DESTDIR)/usr/share/source-highlight/
	rm -f $(DESTDIR)/usr/share/info/dir*
	rm $(DESTDIR)/usr/share/doc/source-highlight/ChangeLog*
	dh_install --fail-missing -Xlibsource-highlight.la

install binary-indep binary-arch binary:
	dh $@

.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install