File: rules

package info (click to toggle)
glgrib 1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,861,476 kB
  • sloc: cpp: 20,811; ansic: 6,530; perl: 2,902; sh: 513; makefile: 147; python: 58; sql: 18
file content (37 lines) | stat: -rwxr-xr-x 1,014 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1

include /usr/share/dpkg/buildflags.mk

export DEB_CFLAGS=$(CFLAGS) $(CPPFLAGS)
export DEB_CXXFLAGS=$(CXXFLAGS) $(CPPFLAGS)
export DEB_LDFLAGS=$(LDFLAGS)

%:
	dh $@ --with python3

override_dh_auto_install:
	./scripts/debian/install.pl
	cd src/perl5/glfw && make install
	cd src/glGribTk && make install
	cd src/python3/glfw && make install
	./scripts/debian/cleanInstall.pl

execute_after_dh_install-arch:
	# Removing useless direct_url.json file with build path.
	find debian/python3-glgrib-glfw -name "direct_url.json" -delete

execute_after_dh_install-indep:
	# Removing extra license files
	find debian/glgrib-data -name "*LICENCE.txt" -delete
	find debian/glgrib-data -name "*LICENSE.txt" -delete
	find debian/glgrib-data -name "*LICENSE.TXT" -delete
	find debian/glgrib-data -name "COPYING.LESSERv3" -delete

override_dh_clean:
	rm -rf bin share/glgrib/shaders
	dh_clean