File: rules

package info (click to toggle)
erlang-bitcask 2.0.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,604 kB
  • ctags: 1,436
  • sloc: erlang: 7,929; ansic: 2,954; makefile: 229; exp: 86; sh: 14
file content (48 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

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

package=bitcask

CFLAGS=
LDFLAGS=


build:
	ERL_FLAGS="-smp enable" make
	touch build

clean: 
	dh_clean
	rm -f build

	# Add here commands to clean up after the build process.
	make clean

install: build
	dh_testdir
	dh_testroot
	dh_installdirs
	cp -R src debian/$(package)/usr/lib/riak/lib/$(package)-$(REVISION)
	cp -R ebin debian/$(package)/usr/lib/riak/lib/$(package)-$(REVISION)
	cp -R priv debian/$(package)/usr/lib/riak/lib/$(package)-$(REVISION)

binary-indep: install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: install
	dh_strip -a
	dh_compress -a
	dh_installdeb
	dh_gencontrol
	dh_builddeb

binary: binary-indep binary-arch