-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules
executable file
·36 lines (28 loc) · 958 Bytes
/
rules
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
#!/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 get-orig-source
UPSTREAM_LAST_RELEASE = 0.4.1
UPSTREAM_URL = https://github.com/nanopb/nanopb/archive/$(UPSTREAM_LAST_RELEASE).tar.gz
get-orig-source:
wget $(UPSTREAM_URL) -O nanopb_$(UPSTREAM_LAST_RELEASE).orig.tar.gz