Add SKIP_VERSION option to speed up compilation

b6_b7_audio
Fred Sundvik 8 years ago
parent e950d4e12f
commit 738b8d2b9c
  1. 8
      Makefile
  2. 0
      keyboards/handwired/MS_sculpt_mobile/MS_sculpt_mobile.c
  3. 0
      keyboards/handwired/MS_sculpt_mobile/MS_sculpt_mobile.h
  4. 0
      keyboards/handwired/MS_sculpt_mobile/Makefile
  5. 0
      keyboards/handwired/MS_sculpt_mobile/babblePaste.c
  6. 0
      keyboards/handwired/MS_sculpt_mobile/babblePaste.h
  7. 0
      keyboards/handwired/MS_sculpt_mobile/babblePaste.txt
  8. 0
      keyboards/handwired/MS_sculpt_mobile/config.h
  9. 0
      keyboards/handwired/MS_sculpt_mobile/keymaps/default/Makefile
  10. 0
      keyboards/handwired/MS_sculpt_mobile/keymaps/default/config.h
  11. 0
      keyboards/handwired/MS_sculpt_mobile/keymaps/default/keymap.c
  12. 0
      keyboards/handwired/MS_sculpt_mobile/keymaps/default/readme.md
  13. 0
      keyboards/handwired/MS_sculpt_mobile/keymaps/milestogo/Makefile
  14. 0
      keyboards/handwired/MS_sculpt_mobile/keymaps/milestogo/config.h
  15. 0
      keyboards/handwired/MS_sculpt_mobile/keymaps/milestogo/keymap.c
  16. 0
      keyboards/handwired/MS_sculpt_mobile/keymaps/milestogo/readme.md
  17. 0
      keyboards/handwired/MS_sculpt_mobile/readme.md
  18. 0
      keyboards/handwired/MS_sculpt_mobile/rules.mk

@ -534,14 +534,22 @@ test: test-all
.PHONY: test-clean
test-clean: test-all-clean
ifdef SKIP_VERSION
SKIP_GIT := yes
endif
# Generate the version.h file
ifndef SKIP_GIT
GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always --tags 2>/dev/null || date +"%Y-%m-%d-%H:%M:%S")
else
GIT_VERSION := NA
endif
ifndef SKIP_VERSION
BUILD_DATE := $(shell date +"%Y-%m-%d-%H:%M:%S")
$(shell echo '#define QMK_VERSION "$(GIT_VERSION)"' > $(ROOT_DIR)/quantum/version.h)
$(shell echo '#define QMK_BUILDDATE "$(BUILD_DATE)"' >> $(ROOT_DIR)/quantum/version.h)
else
BUILD_DATE := NA
endif
include $(ROOT_DIR)/testlist.mk

Loading…
Cancel
Save