-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(make): improve Makefile and other things
Signed-off-by: No <[email protected]>
- Loading branch information
1 parent
fb72df9
commit aa4642a
Showing
66 changed files
with
120 additions
and
2,345 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 |
---|---|---|
@@ -1,18 +1,46 @@ | ||
SH = bash | ||
# Author.: Anonymous Planet | ||
# License.: CC BY-NC 4.0 | ||
|
||
# Define the scripts | ||
SCRIPTS = make.sh clean.sh | ||
## | ||
# Setup shell | ||
# https://github.com/QubesOS/qubes-issues/issues/8343 | ||
# if the default shell ($$SHELL) is zsh, else use bash | ||
## | ||
|
||
# Define the target | ||
.PHONY: all guide clean | ||
ifneq ($(shell echo $$SHELL | grep -q 'zsh' && echo zsh), zsh) | ||
SHELL := /bin/bash # Debian default | ||
else | ||
SHELL := /bin/zsh # Whonix | ||
endif | ||
|
||
|
||
## | ||
# Paths | ||
## | ||
|
||
RM := rm | ||
BUILD_DIR := ./export | ||
|
||
# TODO: Makefile flags | ||
|
||
# Default target | ||
all: clean guide | ||
|
||
# Target to run script1 | ||
## | ||
# target: clean | ||
## | ||
|
||
.PHONY: clean | ||
clean: | ||
$(SH) clean.sh | ||
@echo "Our shell: $(SHELL)" | ||
$(RM) -rf $(BUILD_DIR) | ||
$(RM) -f ./*.md.asc | ||
$(RM) -f ./*.txt.asc | ||
|
||
## | ||
# target: guide | ||
## | ||
|
||
# Target to run script2 | ||
.PHONY: guide | ||
guide: | ||
$(SH) make.sh | ||
mkdir -p export | ||
./make.sh |
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
Oops, something went wrong.