mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-24 14:50:38 +01:00
projects-dir.mk: Add time measurement to make all
The "all" target's command is now preceded by /usr/bin/time by default Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
0a04f98785
commit
2061d731f5
1 changed files with 4 additions and 1 deletions
|
|
@ -100,6 +100,9 @@ endif
|
||||||
|
|
||||||
BROWSER ?= xdg-open
|
BROWSER ?= xdg-open
|
||||||
EDITOR ?= xdg-open
|
EDITOR ?= xdg-open
|
||||||
|
ifeq ($(TIME),)
|
||||||
|
TIME = $(shell which time) -p
|
||||||
|
endif
|
||||||
PROJECTS_PY = python2 $(MOD_SCRIPT_DIR)/projects.py --prefix $(shell pwd) $(PROJECTS_PY_EXTRA_OPTS)
|
PROJECTS_PY = python2 $(MOD_SCRIPT_DIR)/projects.py --prefix $(shell pwd) $(PROJECTS_PY_EXTRA_OPTS)
|
||||||
PROJECTS_PY_BUILD = $(PROJECTS_PY) build $(PROJECTS_PY_EXTRA_BUILD_OPTS)
|
PROJECTS_PY_BUILD = $(PROJECTS_PY) build $(PROJECTS_PY_EXTRA_BUILD_OPTS)
|
||||||
PGIT_SH = /bin/bash $(MOD_SCRIPT_DIR)/pgit.sh
|
PGIT_SH = /bin/bash $(MOD_SCRIPT_DIR)/pgit.sh
|
||||||
|
|
@ -123,7 +126,7 @@ CVS_PROJECTS = $(patsubst %/,%,$(dir $(wildcard $(addsuffix /CVS,$(BUIL
|
||||||
# --- mandatory targets
|
# --- mandatory targets
|
||||||
|
|
||||||
all: $(filter-out $(UNAVAILABLE_TARGETS),pull.done links.done)
|
all: $(filter-out $(UNAVAILABLE_TARGETS),pull.done links.done)
|
||||||
$(PROJECTS_PY_BUILD) $@ $(TARGET_PROJECTS)
|
$(TIME) $(PROJECTS_PY_BUILD) $@ $(TARGET_PROJECTS)
|
||||||
clean: clean-dirs done.clean
|
clean: clean-dirs done.clean
|
||||||
distclean: clean-all-dirs done.clean
|
distclean: clean-all-dirs done.clean
|
||||||
install:
|
install:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue