-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e0df1a
commit ffbce58
Showing
7 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
MAKEFLAGS=--warn-undefined-variables | ||
# /bin/sh is dash on Debian which does not support all features of ash/bash | ||
# to fix that we use /bin/bash only on Debian to not break Alpine | ||
ifneq (,$(wildcard /etc/os-release)) # check file existence | ||
ifneq ($(shell grep -c debian /etc/os-release),0) | ||
SHELL := /bin/bash | ||
endif | ||
endif | ||
|
||
prepare-static-check: FORCE | ||
@if ! hash addlicense 2>/dev/null; then printf "\e[1;36m>> Installing addlicense...\e[0m\n"; go install github.com/google/addlicense@latest; fi | ||
|
||
license-headers: FORCE prepare-static-check | ||
@printf "\e[1;36m>> addlicense\e[0m\n" | ||
@addlicense -c "SAP SE" -- $(shell find -name *.rs) | ||
|
||
check-license-headers: FORCE prepare-static-check | ||
@printf "\e[1;36m>> addlicense --check\e[0m\n" | ||
@addlicense --check -- $(shell find -name *.rs) | ||
|
||
clean: FORCE | ||
git clean -dxf build | ||
|
||
.PHONY: FORCE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters