mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
projects-dir.mk: Cope with missing /usr/bin/time
Kali Linux' default installation doesn't have /usr/bin/time which brings out a but: $(TIME) doesn't expand to nothing but to -p, which fails miserably, of course. Fix that. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
a294c4ec34
commit
47efb08088
1 changed files with 4 additions and 1 deletions
|
|
@ -111,7 +111,10 @@ endif
|
|||
BROWSER ?= xdg-open
|
||||
EDITOR ?= xdg-open
|
||||
ifeq ($(TIME),)
|
||||
TIME = $(shell which time) -p
|
||||
TIME := $(shell which time)
|
||||
ifneq ($(TIME),)
|
||||
TIME += -p
|
||||
endif
|
||||
endif
|
||||
PROJECTS_PY = $(TIME) python3 $(JWB_SCRIPT_DIR)/jw-projects.py --prefix $(shell pwd) $(PROJECTS_PY_EXTRA_OPTS)
|
||||
PROJECTS_PY_BUILD = $(PROJECTS_PY) build $(PROJECTS_PY_EXTRA_BUILD_OPTS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue