File: rules

package info (click to toggle)
librecad 2.1.3-1.2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 149,200 kB
  • sloc: cpp: 183,286; ansic: 3,106; sh: 249; makefile: 24; xml: 20
file content (34 lines) | stat: -rwxr-xr-x 1,100 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

include /usr/share/dpkg/pkg-info.mk
DEB_UPSTREAM_VERSION=$DEB_{SOURCE,VERSION}

export QT_SELECT = 5
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_clean:
	dh_clean
	rm -rf unix/
	find . -name *.qm -delete
	rm -rf debian/librecad.1 debian/librecad.desktop \
           debian/librecad.sharedmimeinfo debian/librecad.mime \
           debian/librecad.png debian/librecad.xpm debian/librecad.svg \
           plugins/intermediate \
           generated/ custom.pro

override_dh_auto_configure:
	dh_auto_configure -- librecad.pro
	cp desktop/librecad* debian
	cp desktop/graphics_icons_and_splash/Icon\ LibreCAD/Icon_Librecad.svg debian/librecad.svg
	convert -resize 48x48 desktop/graphics_icons_and_splash/Icon\ LibreCAD/Icon_Librecad.svg debian/librecad.png
	convert -resize 32x32 desktop/graphics_icons_and_splash/Icon\ LibreCAD/Icon_Librecad.svg debian/librecad.xpm

copyright_check:
	$(MAKE) -f /usr/share/cdbs/1/rules/utils.mk debian/stamp-copyright-check
	rm debian/stamp-copyright-check