File: rules

package info (click to toggle)
cups-pdf 2.6.1-22
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 416 kB
  • ctags: 92
  • sloc: ansic: 872; perl: 274; sh: 212; makefile: 14; python: 11
file content (30 lines) | stat: -rwxr-xr-x 920 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
#!/usr/bin/make -f
#
# debhelper-7 [debian/rules] for cups-pdf
#
# COPYRIGHT © 2003-2016 Martin-Éric Racine <martin-eric.racine@iki.fi>
#
# LICENSE
# GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
#
export CC       := $(shell dpkg-architecture --query DEB_HOST_GNU_TYPE)-gcc
export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
export CFLAGS   := $(shell dpkg-buildflags --get CFLAGS)
export LDFLAGS  := $(shell dpkg-buildflags --get LDFLAGS)
# Append flags for Long File Support (LFS)
# LFS_CPPFLAGS does not exist
export DEB_CFLAGS_MAINT_APPEND  +=$(shell getconf LFS_CFLAGS)
export DEB_LDFLAGS_MAINT_APPEND +=$(shell getconf LFS_LDFLAGS)

override_dh_auto_build-arch:
	$(CC) -o src/cups-pdf src/cups-pdf.c $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)

override_dh_auto_clean:
	rm -f src/cups-pdf src/*.o

override_dh_installdocs:
	dh_installdocs --link-doc=printer-driver-cups-pdf

%:
	dh $@ 
#EOF