File: rules

package info (click to toggle)
gadmin-samba 0.2.9-3
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 5,480 kB
  • ctags: 691
  • sloc: ansic: 11,164; sh: 3,219; makefile: 169
file content (31 lines) | stat: -rwxr-xr-x 879 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
#!/usr/bin/make -f

%:
	dh ${@} --with autotools_dev

override_dh_auto_clean:
	dh_auto_clean

	rm -f po/*.gmo

override_dh_auto_configure:
	dh_auto_configure -- --exec-prefix=/usr --sbindir=/usr/sbin --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man LDFLAGS="-Wl,-z,defs"

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/gadmin-samba install

	# Removing useless files
	rm -rf debian/gadmin-samba/usr/share/icons/gadmin-samba

	rm -f debian/gadmin-samba/usr/share/doc/gadmin-samba/AUTHORS
	rm -f debian/gadmin-samba/usr/share/doc/gadmin-samba/ChangeLog
	rm -f debian/gadmin-samba/usr/share/doc/gadmin-samba/COPYING
	rm -f debian/gadmin-samba/usr/share/doc/gadmin-samba/README

override_dh_fixperms:
	dh_fixperms

	chmod 0644 debian/gadmin-samba/usr/share/doc/gadmin-samba/examples/example.bat

override_dh_strip:
	dh_strip --dbg-package=gadmin-samba-dbg