File: rules

package info (click to toggle)
cwiid 0.6.00+svn201-4
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,372 kB
  • sloc: ansic: 7,572; makefile: 280; python: 255; lex: 176; yacc: 73; awk: 16
file content (50 lines) | stat: -rwxr-xr-x 1,396 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/make -f

DEB_AUTO_UPDATE_LIBTOOL = pre
DEB_AUTO_UPDATE_AUTOCONF = 2.60

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

# In order to regenerate 'debian/control' :
#    DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
# Then check manually if everything's ok

DEB_CONFIGURE_EXTRA_FLAGS := --with-cwiid-config-dir="\$${debroot}/etc/cwiid" --disable-ldconfig

DEB_MAKE_INSTALL_TARGET := install debroot=$(CURDIR)/debian/tmp prefix=$(CURDIR)/debian/tmp/usr

DEB_INSTALL_CHANGELOGS_ALL := ChangeLog

STAGING_DIR               := $(CURDIR)/debian/python-cwiid
DEB_COMPRESS_EXCLUDE      := .py

#LDFLAGS := -Wl,--as-needed -lbluetooth -lrt

binary-install/python-cwiid::
	dh_python2 -ppython-cwiid

configure/lswm::
	mkdir -p $(CURDIR)/debian/tmp/usr/bin

configure/libcwiid1-dev::
	mkdir -p $(CURDIR)/debian/tmp/usr/include

configure/libcwiid1::
	mkdir -p $(CURDIR)/debian/tmp/usr/lib

configure/wmgui::
	mkdir -p $(CURDIR)/debian/tmp/usr/bin

configure/wminput::
	mkdir -p $(CURDIR)/debian/tmp/usr/bin

binary-install/wminput::
	chmod -x $(CURDIR)/debian/wminput/etc/cwiid/wminput/*
	rm -f $(CURDIR)/debian/wminput/etc/cwiid/wminput/default
	dh_link -pwminput etc/cwiid/wminput/acc_ptr etc/cwiid/wminput/default

clean::
	rm -rf config.log config.status
	rm -f configure ltmain.sh