Skip to content
Snippets Groups Projects
Commit 1cf5b6d4 authored by Patrick Baudin's avatar Patrick Baudin
Browse files

[Lint/Headers] fixes determination if directory is under git control

parent 477ef0e4
No related branches found
No related tags found
No related merge requests found
...@@ -106,8 +106,8 @@ HDRCK.FILE_ATTR=$(GIT) check-attr --stdin -z header_spec ...@@ -106,8 +106,8 @@ HDRCK.FILE_ATTR=$(GIT) check-attr --stdin -z header_spec
ifeq ($(HEADER_SPEC),) ifeq ($(HEADER_SPEC),)
HDRCK.HAS_GIT:=$(wildcard .git) HDRCK.HAS_GIT:=$(shell git rev-parse --is-inside-work-tree 2> /dev/null)
ifneq ($(HDRCK.HAS_GIT),) ifeq ($(HDRCK.HAS_GIT),true)
# From git (including git work-trees) # From git (including git work-trees)
HDRCK.SPEC:=$(HDRCK.FILE_LIST) | $(HDRCK.FILE_ATTR) HDRCK.SPEC:=$(HDRCK.FILE_LIST) | $(HDRCK.FILE_ATTR)
...@@ -124,8 +124,8 @@ else # HEADER_SPEC ...@@ -124,8 +124,8 @@ else # HEADER_SPEC
ifeq ($(HEADER_SAVE_SPEC),yes) ifeq ($(HEADER_SAVE_SPEC),yes)
HDRCK.HAS_GIT:=$(wildcard .git) HDRCK.HAS_GIT:=$(shell git rev-parse --is-inside-work-tree 2> /dev/null)
ifneq ($(HDRCK.HAS_GIT),) ifeq ($(HDRCK.HAS_GIT),true)
# From git (including git work-trees) # From git (including git work-trees)
HDRCK.SPEC:= $(HDRCK.FILE_LIST) | $(HDRCK.FILE_ATTR) | $(TEE) $(HEADER_SPEC) HDRCK.SPEC:= $(HDRCK.FILE_LIST) | $(HDRCK.FILE_ATTR) | $(TEE) $(HEADER_SPEC)
......
...@@ -161,8 +161,8 @@ LINT.check-targets= \ ...@@ -161,8 +161,8 @@ LINT.check-targets= \
LINT.fix-targets=$(subst check-,fix-,$(LINT.check-targets)) LINT.fix-targets=$(subst check-,fix-,$(LINT.check-targets))
LINT.main-targets=lint $(LINT.check-targets) $(LINT.fix-targets) LINT.main-targets=lint $(LINT.check-targets) $(LINT.fix-targets)
LINT.HAS_GIT:=$(wildcard .git) LINT.HAS_GIT:=$(shell git rev-parse --is-inside-work-tree 2> /dev/null)
ifeq ($(LINT.HAS_GIT),) ifneq ($(LINT.HAS_GIT),true)
.PHONY: lint .PHONY: lint
lint: lint:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment