File: rules

package info (click to toggle)
manderlbot 0.9.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 756 kB
  • sloc: erlang: 2,898; makefile: 205; sh: 67; xml: 30
file content (31 lines) | stat: -rwxr-xr-x 608 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
#!/usr/bin/make -f

DIR = $(CURDIR)/debian/manderlbot
EDIR = $(DIR)/usr/lib/erlang/lib

%:
	dh $@

override_dh_auto_build:
	$(MAKE)
	$(MAKE) doc

override_dh_auto_install:
	make install DESTDIR=$(DIR) \
		     CONFDIR=$(DIR)/etc/manderlbot/ \
		     ERLANG_LIB_DIR=$(EDIR)
	#
	# Remove sources
	rm -rf $(EDIR)/manderlbot-*/src
	#
	# Remove unnecessary builder binary and options
	rm -r $(EDIR)/manderlbot-*/BUILD_OPTIONS
	rm -r $(EDIR)/manderlbot-*/ebin/builder.beam
	

override_dh_gencontrol:
	erlang-depends
	dh_gencontrol

.PHONY: override_dh_auto_build override_dh_auto_install \
	override_dh_gencontrol