Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
6
7 %:
8 dh $@
9
10 override_dh_clean:
11 scons --clean
12 dh_clean .sconsign.dblite build/
13
14 override_dh_auto_build:
15 CFLAGS="$(CFLAGS) $(CPPFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" \
16 scons prefix=/usr verbosebuild=1 ipv6=1 sdl2=1 --debug=presub -j $(NUMJOBS)
17
18 override_dh_auto_install:
19 dh_auto_install --destdir=tmp
20
21 execute_before_dh_install:
22 install -m644 contrib/packaging/linux/descent.svg build/d1x-rebirth.svg
23 install -m644 d1x-rebirth/d1x-rebirth.desktop build/io.github.dxx_rebirth.dxx_rebirth.d1x-rebirth.desktop
24
25 override_dh_installchangelogs:
26 dh_installchangelogs -pd1x-rebirth d1x-rebirth/RELEASE-NOTES.txt