File: rules

package info (click to toggle)
scite 4.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 12,016 kB
  • sloc: cpp: 134,862; ansic: 19,145; python: 5,169; makefile: 578; perl: 200; sql: 160; sh: 142; objc: 18; ruby: 6; php: 1
file content (38 lines) | stat: -rwxr-xr-x 1,168 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

BUILD_DATE="$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" "+%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=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

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


override_dh_installchangelogs:
	dh_installchangelogs scintilla/doc/ScintillaHistory.html