File: rules

package info (click to toggle)
libclc 0~git20140101-5
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,040 kB
  • ctags: 532
  • sloc: lisp: 863; ansic: 665; python: 578; cpp: 74; makefile: 22; pascal: 5; sh: 1
file content (30 lines) | stat: -rwxr-xr-x 835 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

export DH_VERBOSE=1
export VERBOSE=1

confflags=--prefix=/usr \
          --with-llvm-config=/usr/bin/llvm-config \

path=debian/tmp/usr/lib/clc

%:
	dh $@ --parallel

override_dh_auto_configure:
	./configure.py $(confflags)

override_dh_install:
	test $(shell sha512sum $(path)/cypress-r600--.bc) != $(shell sha512sum $(path)/cayman-r600--.bc) || \
	    rm -f $(path)/cypress-r600--.bc && \
	    ln -s cayman-r600--.bc $(path)/cypress-r600--.bc
	test $(shell sha512sum $(path)/cedar-r600--.bc) != $(shell sha512sum $(path)/barts-r600--.bc) || \
	    rm -f $(path)/cedar-r600--.bc && \
	    ln -s barts-r600--.bc $(path)/cedar-r600--.bc
	dh_install

override_dh_clean:
	test ! -e Makefile || make clean
	find -name '*.pyc' -execdir rm -f {} \;
	find -name '*.d' -execdir rm -f {} \;
	dh_clean -- Makefile libclc.pc