File: rules

package info (click to toggle)
keepass2 2.57%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 14,516 kB
  • sloc: cs: 120,930; xml: 6,271; cpp: 322; sh: 53; makefile: 49
file content (67 lines) | stat: -rwxr-xr-x 2,886 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/make -f
# -*- makefile -*-

export DH_VERBOSE=1

#include /usr/share/cli-common/cli.make

%:
	dh $@ --with=cli

override_dh_auto_clean:
	rm -rf KeePass/obj
	rm -rf Build/KeePass/ Build/Chm
	rm -f debian/keepass2.png
	# remove files created by archmage
	rm -f Docs/arch_contents.html Docs/arch_frameset.html \
	      Docs/arch_header.html Docs/index.html Docs/arch_css.css
	rm -rf Docs/icons
	dh_auto_clean

override_dh_auto_build:
#mdtool build -c:Release -p:KeePass
	LC_ALL=C.UTF-8 xbuild /target:KeePass /property:Configuration=Release /property:Deterministic=True
# build an index from the raw chm source
	rm -rf Build/Chm # Remove dir because archmage will error exit if it alread exists.
	archmage -x Docs Build/Chm
	mv Build/Chm/chm/* Build/Chm

override_dh_install:
	convert $(CURDIR)/KeePass/Resources/Icons/KeePass.ico keepass2.png
	mkdir -p $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/16x16/apps
	mv keepass2-11.png $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/16x16/apps/keepass2.png
	mkdir -p $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/24x24/apps
	mv keepass2-9.png $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/24x24/apps/keepass2.png
	mkdir -p $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/32x32/apps
	mv keepass2-8.png $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/32x32/apps/keepass2.png
	mkdir -p $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/48x48/apps
	mv keepass2-7.png $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/48x48/apps/keepass2.png
	mkdir -p $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/64x64/apps
	mv keepass2-6.png $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/64x64/apps/keepass2.png
	mkdir -p $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/256x256/apps
	mv keepass2-5.png $(CURDIR)/debian/keepass2/usr/share/icons/hicolor/256x256/apps/keepass2.png
	rm -f keepass2*.png
	dh_install
	mv $(CURDIR)/debian/keepass2/usr/bin/keepass2.sh $(CURDIR)/debian/keepass2/usr/bin/keepass2
	# create plugin location
	mkdir $(CURDIR)/debian/keepass2/usr/lib/keepass2/Plugins
	debian/modifyconf


override_dh_installchangelogs:
	dh_installchangelogs Docs/History.txt

override_dh_installdocs:
	# skip signing key readme
	dh_installdocs -pkeepass2 -XReadMe_PFX.txt
	dh_installdocs -pkeepass2-doc -XReadMe_PFX.txt --link-doc=keepass2

override_dh_clideps:
	dh_clideps --exclude-moduleref=KeePassLibC32.dll --exclude-moduleref=KeePassLibC64.dll\
		--exclude-moduleref=ShlWApi.dll --exclude-moduleref=Kernel32.dll \
		--exclude-moduleref=User32.dll --exclude-moduleref=ComCtl32.dll \
		--exclude-moduleref=ComCtl32.dll --exclude-moduleref=UxTheme.dll \
		--exclude-moduleref=Shell32.dll --exclude-moduleref=DwmApi.dll \
		--exclude-moduleref=Imm32.dll --exclude-moduleref=WinMM.dll \
		--exclude-moduleref=ShCore.dll --exclude-moduleref=KtmW32.dll \
		--exclude-moduleref=Wer.dll --exclude-moduleref=libargon2.so.0