]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
Cosmetic Makefile changes
authorMichal Sojka <michal.sojka@cvut.cz>
Sat, 15 Sep 2018 23:39:50 +0000 (01:39 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Mon, 17 Sep 2018 07:47:20 +0000 (09:47 +0200)
Makefile

index e894bd16c3f97fb633ad85048378a6b4d5ca0ce6..2bb7324f851ce4ac43325e7c5eee85e124955007 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -103,7 +103,7 @@ rule CMAKE
 rule NINJA
   # Absolute path in -C allows Emacs to properly jump to error message locations
   command = ninja -C $(CURDIR)/$$$$(dirname $$out) && touch $$out
-  description = Ninja $$out
+  description = ninja $$out
 rule TEST_SEQ
   command = ( build-$$build/kcf_vot $$flags $$seq || echo failed ) > $$out
 rule PRINT_RESULTS
@@ -122,12 +122,12 @@ build clean: CLEAN
 build build.ninja: REGENERATE Makefile
 endef
 
-
+GIT_LS_FILES := $(shell git ls-files)
 
 define ninja-build
 build build-$(1)/build.ninja: CMAKE
   opts = $(2)
-build build-$(1)/kcf_vot: NINJA build-$(1)/build.ninja $(shell git ls-files)
+build build-$(1)/kcf_vot: NINJA build-$(1)/build.ninja $(GIT_LS_FILES)
 default build-$(1)/kcf_vot
 endef