File: rules

package info (click to toggle)
srm-ifce 1.24.7-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 988 kB
  • sloc: ansic: 8,250; python: 159; makefile: 93; sh: 65
file content (31 lines) | stat: -rwxr-xr-x 651 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/make -f
# -*- makefile -*-

VERSION=1.23.1

-include /usr/share/dpkg/buildflags.mk

CFLAGS += $(CPPFLAGS)
CXXFLAGS += $(CPPFLAGS)

export CFLAGS CXXFLAGS LDFLAGS

%:
	dh $@ 

override_dh_auto_configure:
	dh_auto_configure -- -DLIB_SUFFIX=""

override_dh_install:
	rm -rf debian/tmp/usr/share/doc
	dh_install --fail-missing

get-orig-source:
	git clone https://gitlab.cern.ch/dmc/srm-ifce.git srm-ifce-$(VERSION)
	( cd srm-ifce-$(VERSION) ; \
	  git checkout v$(VERSION) ; \
	  git submodule init ; \
	  git submodule update \
	)
	tar -c -z --exclude-vcs -f ../srm-ifce_$(VERSION).orig.tar.gz srm-ifce-$(VERSION)
	rm -rf srm-ifce-$(VERSION)