File: rules

package info (click to toggle)
xplot-xplot.org 0.90.7.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,884 kB
  • sloc: ansic: 4,311; perl: 1,087; sh: 152; makefile: 112
file content (20 lines) | stat: -rwxr-xr-x 625 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

#export DH_VERBOSE=1

export CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
CFLAGS += -std=c99 -D_POSIX_C_SOURCE=2
export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)

# Upstream's makefile doesn't respect DESTDIR, but it's simple
# enough so we just handle it here.
override_dh_auto_install:
	install -m0755 xplot debian/xplot-xplot.org/usr/bin/xplot.org
	install -m0755 tcpdump2xplot.pl debian/xplot-xplot.org/usr/bin/tcpdump2xplot
	install -m0644 xplot.1 debian/xplot-xplot.org/usr/share/man/man1/xplot.org.1

execute_after_dh_clean:
	-rm -f Makefile config.h config.log config.status

%:
	dh $@