File: rules

package info (click to toggle)
nanopb 0.4.4-2
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 4,056 kB
  • sloc: ansic: 11,804; python: 2,091; sh: 156; cpp: 112; makefile: 86
file content (31 lines) | stat: -rwxr-xr-x 737 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
#-*- makefile -*-

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

# enable dynamic allocation support
export DEB_CFLAGS_MAINT_APPEND=-DPB_ENABLE_MALLOC

override_dh_clean:
	dh_clean
	find $(CURDIR) -name \*.pyc -delete
	$(RM) -f $(CURDIR)/generator/proto/nanopb_pb2.py
	$(RM) $(CURDIR)/tests/.sconsign.dblite
	$(RM) -rf $(CURDIR)/tests/.sconf_temp/
	$(RM) -rf $(CURDIR)/tests/build/
	$(RM) $(CURDIR)/tests/config.log

override_dh_auto_build:
	dh_auto_build
	$(MAKE) -C $(CURDIR)/generator/proto/

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cd $(CURDIR)/tests/ && scons
endif

%:
	dh $@ --with python3

.PHONY: override_dh_clean override_dh_auto_build override_dh_auto_test