File: rules

package info (click to toggle)
oxygencursors 0.0.2012-06-kde4.8-2.1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 1,536 kB
  • ctags: 19
  • sloc: sh: 66; makefile: 46; python: 39
file content (71 lines) | stat: -rwxr-xr-x 1,440 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
ICONDIR=usr/share/icons
WRAPPERDIR=etc/X11/cursors

include /usr/share/quilt/quilt.make

builddir: $(QUILT_STAMPFN)
	mkdir -p $@

builddir/Makefile: builddir
	cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=/usr

build-compile-cursors-stamp: builddir/Makefile
	cd builddir && make
	touch $@

$(subst theme,cursors/oxy,$(wildcard theme-*)): build-compile-cursors-stamp
	mkdir -p $@
	cp -a builddir/$(subst cursors/,,$@)/cursors $@
	cp $(subst cursors/oxy,theme,$@)/index.theme $@
	

build-stamp:  $(subst theme,cursors/oxy,$(wildcard theme-*))
	touch $@

build: build-stamp

clean: unpatch
	dh_testdir
	dh_testroot
	# Add here commands to clean up after the build process.
	dh_clean
	rm -rf cursors
	rm -rf builddir
	rm -f build-stamp build-compile-cursors-stamp

install:
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs

	# Add here commands to install the package into debian/comixcursors.
	cp -a cursors/oxy-* $(CURDIR)/debian/oxygencursors/$(ICONDIR)

	chmod +x debian/wrapperthemes.sh

	debian/wrapperthemes.sh


binary-arch: install
# We have nothing to do here

binary-indep: install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs 
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb -- -Zxz

binary: binary-indep binary-arch
.PHONY: clean binary-indep binary-arch binary install