File: rules

package info (click to toggle)
grap 1.46-1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 912 kB
  • sloc: cpp: 3,260; yacc: 1,115; lex: 1,056; sh: 941; makefile: 42
file content (16 lines) | stat: -rwxr-xr-x 559 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS:=hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --with-example-dir=\$${prefix}/share/doc/grap/examples

override_dh_auto_install:
	dh_auto_install
	sed -i -e "s#/usr/local/share/grap/grap.defines#/usr/share/grap/grap.defines#g;" debian/grap/usr/share/man/man1/grap.1
	sed -i -e "s#/usr/local/share/examples/grap#/usr/share/doc/grap/examples#g;" debian/grap/usr/share/man/man1/grap.1
	rm -f debian/grap/usr/share/doc/grap/COPYRIGHT
	rm -f debian/grap/usr/share/doc/grap/grap.man