File: rules

package info (click to toggle)
iozone3 508-1
  • links: PTS
  • area: non-free
  • in suites: forky, sid
  • size: 2,700 kB
  • sloc: ansic: 26,976; makefile: 1,184; perl: 319; sh: 33
file content (36 lines) | stat: -rwxr-xr-x 903 bytes parent folder | download | duplicates (2)
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
34
35
36
#!/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 $@

execute_before_dh_clean:
	make -C src/current clean

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