File: rules

package info (click to toggle)
scite 5.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 15,684 kB
  • sloc: cpp: 161,803; ansic: 20,990; python: 7,336; makefile: 857; sh: 232; perl: 200; sql: 160; php: 52; erlang: 47; objc: 22; lisp: 14; ml: 11; tcl: 6; ruby: 6
file content (64 lines) | stat: -rwxr-xr-x 2,459 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

include /usr/share/dpkg/pkg-info.mk
BUILD_DATE ?= $(shell date --utc --date="@$(SOURCE_DATE_EPOCH)" "+%b %d %Y %T")
override CPPFLAGS += -DBUILD_DATE="\"$(BUILD_DATE)\""

%:
	dh $@

override_dh_auto_build:
	dh_auto_build --sourcedirectory=scintilla/gtk -- GTK3=1 $(BUILD_LUA)
	dh_auto_build --sourcedirectory=lexilla/src -- GTK3=1 $(BUILD_LUA)
	dh_auto_build --sourcedirectory=scite/gtk -- gnomeprefix=/usr GTK3=1 $(BUILD_LUA)

override_dh_auto_clean:
	dh_auto_clean
	$(MAKE) -C scintilla/gtk clean
	rm -f scintilla/bin/scintilla.a
	$(MAKE) -C scite/gtk clean
	$(MAKE) -C lexilla/src clean
	rm -f scite/bin/liblexilla.so
	rm -f scite/bin/libscintilla.so


override_dh_auto_install:
	dh_auto_install
	cd scite/gtk; $(MAKE) install GTK3=1 gnomeprefix=../../debian/scite/usr datadir=../../debian/scite/usr/share
	#chmod -x $(CURDIR)/debian/scite/usr/share/scite/*
	# install configuration files into the /etc directory
	mv $(CURDIR)/debian/scite/usr/share/scite/*.properties $(CURDIR)/debian/scite/etc/scite
	for f in $(CURDIR)/debian/scite/etc/scite/*.properties; do \
		dh_link etc/scite/$$(basename $$f) usr/share/scite/$$(basename $$f); \
	done


override_dh_install:
	dh_install
	sh debian/fix-doc.sh
	mkdir -p $(CURDIR)/debian/scite/usr/share/doc/scite
	mv -f $(CURDIR)/debian/scite/usr/share/scite/*.html $(CURDIR)/debian/scite/usr/share/doc/scite/
	mv -f $(CURDIR)/debian/scite/usr/share/scite/*.txt $(CURDIR)/debian/scite/usr/share/doc/scite/
	mv -f $(CURDIR)/debian/scite/usr/share/scite/*.jpg $(CURDIR)/debian/scite/usr/share/doc/scite/
	mv -f $(CURDIR)/debian/scite/usr/share/scite/*.png $(CURDIR)/debian/scite/usr/share/doc/scite/
	for f in $(CURDIR)/debian/scite/usr/share/doc/scite/*.html; do \
		dh_link usr/share/doc/scite/$$(basename $$f) usr/share/scite/$$(basename $$f); \
	done
	for f in $(CURDIR)/debian/scite/usr/share/doc/scite/*.txt; do \
		dh_link usr/share/doc/scite/$$(basename $$f) usr/share/scite/$$(basename $$f); \
	done
	for f in $(CURDIR)/debian/scite/usr/share/doc/scite/*.jpg; do \
		dh_link usr/share/doc/scite/$$(basename $$f) usr/share/scite/$$(basename $$f); \
	done
	for f in $(CURDIR)/debian/scite/usr/share/doc/scite/*.png; do \
		dh_link usr/share/doc/scite/$$(basename $$f) usr/share/scite/$$(basename $$f); \
	done


override_dh_installchangelogs:
	dh_installchangelogs scintilla/doc/ScintillaHistory.html

override_dh_compress:
	dh_compress -X.xpm