File: rules

package info (click to toggle)
hyprpaper 0.7.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 248 kB
  • sloc: cpp: 1,265; xml: 240; makefile: 17
file content (25 lines) | stat: -rwxr-xr-x 914 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
#!/usr/bin/make -f
# export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1

export CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
export CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)

%:
	dh $@

# hyprpaper uses the 'clear' target instead of a 'clean' target
override_dh_auto_clean:
	dh_auto_clean
	rm -rf protocols/*.hpp protocols/*.cpp
	rm -rf *.c *.h obj-x86_64-linux-gnu/

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr

override_dh_auto_install:
	mkdir -p debian/tmp/usr/share/doc/hyprpaper
	pandoc debian/hyprpaper.1.rst --standalone --variable=header:"hyprpaper User Manual" --variable=section:1 --from rst --to man > debian/tmp/usr/share/doc/hyprpaper/hyprpaper.1
	dh_auto_install -- PREFIX='$${DESTDIR}/usr'