File: rules

package info (click to toggle)
libclang-perl 0.09-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 276 kB
  • ctags: 32
  • sloc: perl: 297; cpp: 55; makefile: 16; ansic: 8
file content (22 lines) | stat: -rwxr-xr-x 569 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
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)
ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
LLVMLIB := $(shell llvm-config --libdir)
LLVMINC := $(shell llvm-config --includedir)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- LIBS="-L$(LLVMLIB) -lclang" INC="-I$(LLVMINC)"

override_dh_auto_build:
	dh_auto_build
	chrpath -d $(CURDIR)/blib/arch/auto/Clang/Clang.so

override_dh_auto_install:
	dh_auto_install
	$(RM) -v $(TMP)/usr/share/man/man3/README.3pm \
		$(TMP)$(ARCHLIB)/README.pod