File: rules

package info (click to toggle)
iozone3 397-2
  • links: PTS
  • area: non-free
  • in suites: wheezy
  • size: 1,828 kB
  • sloc: ansic: 24,735; makefile: 1,032; perl: 271; sh: 33
file content (26 lines) | stat: -rwxr-xr-x 598 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
#!/usr/bin/make -f

DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)

target = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
ifeq ($(DEB_HOST_ARCH), arm)
target = linux-arm
else ifeq ($(DEB_HOST_ARCH), amd64)
target = linux-AMD64
else ifeq ($(DEB_HOST_ARCH), ia64)
target = linux-ia64
else ifeq ($(DEB_HOST_ARCH), powerpc)
target = linux-powerpc
else ifeq ($(DEB_HOST_ARCH), powerpc64)
target = linux-powerpc64
else ifeq ($(DEB_HOST_ARCH), sparc)
target = linux-sparc
endif


%:
	dh $@

build:
	make -C src/current $(target)
	chmod -x src/current/Gnuplot.txt src/current/Generate_Graphs