File: rules

package info (click to toggle)
wfrog 0.8.2%2Bsvn973-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,176 kB
  • ctags: 1,354
  • sloc: python: 8,245; sh: 235; sql: 185; xml: 133; makefile: 37
file content (54 lines) | stat: -rwxr-xr-x 1,308 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

build: build-stamp
build-stamp:
	dh_testdir
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep -k
	dh_installdirs

	# Install wfrog executables and default config
	mkdir -p $(CURDIR)/debian/wfrog/usr/lib/wfrog
	mkdir -p $(CURDIR)/debian/wfrog/usr/bin
	mkdir -p $(CURDIR)/debian/wfrog/etc/init.d
	mkdir -p $(CURDIR)/debian/wfrog/etc/wfrog
	touch  $(CURDIR)/debian/wfrog/etc/wfrog/settings.yaml
	cp -r database/ bin/ wfcommon/ wfdriver/ wflogger/ wfrender/ init.d/ $(CURDIR)/debian/wfrog/usr/lib/wfrog
	dh_link /usr/lib/wfrog/bin/wfrog /usr/bin/wfrog
	#ln -s /usr/lib/wfrog/init.d/wflogger $(CURDIR)/debian/wfrog/etc/init.d/wflogger
	#ln -s /usr/lib/wfrog/init.d/wfrender $(CURDIR)/debian/wfrog/etc/init.d/wfrender

	# Prepare data directory
	mkdir -p $(CURDIR)/debian/wfrog/var/lib/wfrog

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

binary-arch: build install

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