File: rules

package info (click to toggle)
iozone3 429-3
  • links: PTS
  • area: non-free
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 2,628 kB
  • ctags: 2,055
  • sloc: ansic: 26,172; makefile: 1,096; perl: 319; sh: 33
file content (33 lines) | stat: -rwxr-xr-x 840 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
31
32
33
#!/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_OS), linux)
    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
else ifeq ($(DEB_HOST_ARCH_OS), kfreebsd)
    target = kfreebsd
else
    target = generic
endif


%:
	dh $@

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