Skip to content
Snippets Groups Projects
Commit 1196c4eb authored by Peter A. Jonsson's avatar Peter A. Jonsson
Browse files

Makefile: use hashbang in Python scripts

Execute Python scripts directly so they use
the specified interpreter + parameters
in the first line.

This aligns the behavior between running
Python scripts through make and manually in
the shell.
parent 724ef0b8
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ login: $(SERIAL_DUMP_BIN)
### Targets using tools/motelist
###
CONTIKI_NG_MOTELIST_DIR = $(CONTIKI_NG_TOOLS_DIR)/motelist
CONTIKI_NG_MOTELIST = python $(CONTIKI_NG_MOTELIST_DIR)/motelist.py
CONTIKI_NG_MOTELIST = $(CONTIKI_NG_MOTELIST_DIR)/motelist.py
.PHONY: motelist-all
......
......@@ -180,7 +180,7 @@ LDFLAGS += -Wl,--defsym=_stack_origin=_ram_top
########################################################################
MOTELIST = python $(CONTIKI)/tools/jn516x/mote-list.py
MOTELIST = $(CONTIKI)/tools/jn516x/mote-list.py
# Check if we are running under Windows
ifeq ($(HOST_OS),Windows)
......
......@@ -47,7 +47,7 @@ MODULES += $(CONTIKI_NG_STORAGE_DIR)/cfs
BSL = $(CONTIKI_NG_TOOLS_DIR)/cc2538-bsl/cc2538-bsl.py
MOTES := $(shell python $(CONTIKI_NG_TOOLS_DIR)/motelist/motelist.py --omit-header \
MOTES := $(shell $(CONTIKI_NG_TOOLS_DIR)/motelist/motelist.py --omit-header \
| grep $(MOTELIST_ZOLERTIA) | cut -f1 -d " ")
### If PORT is defined, override to keep backward compatibility
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment