File: rules

package info (click to toggle)
weechat 0.3.2-1%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 13,852 kB
  • ctags: 7,631
  • sloc: ansic: 109,585; sh: 11,023; makefile: 1,115; perl: 504; yacc: 289; sed: 16
file content (37 lines) | stat: -rwxr-xr-x 736 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
#!/usr/bin/make -f

builddir/Makefile:
	mkdir -p builddir
	cd builddir && \
	cmake .. \
		-DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \
		-DCMAKE_C_FLAGS:STRING="$(CFLAGS)" \
		-DCMAKE_LD_FLAGS:STRING="-Wl,-z,defs" \
		-DCMAKE_CXX_FLAGS:STRING="$(CXXFLAGS)" \
		-DCMAKE_SKIP_RPATH:BOOL=ON \
		-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON

build: build-stamp
build-stamp: builddir/Makefile 
	dh_testdir
	$(MAKE) -C builddir
	touch $@

override_dh_auto_configure:
	# the package also has autotools buildsys and
	# debhelper try to use it but that's not needed
	echo

override_dh_install:
	$(MAKE) -C builddir DESTDIR=$(CURDIR)/debian/tmp install
	dh_install

override_dh_strip:
	dh_strip --dbg-package=weechat-dbg

clean:
	rm -rf builddir
	dh $@

%:
	dh $@