Wave changes
This commit is contained in:
20
Makefile
Executable file → Normal file
20
Makefile
Executable file → Normal file
@@ -1,7 +1,6 @@
|
||||
.PHONY: all build json fast clean norm tests help
|
||||
.PHONY: all build json json-2 fast clean norm tests fix-permissions help
|
||||
|
||||
# Default target: full build with search index
|
||||
all: clean json build
|
||||
all: clean json build json-2
|
||||
|
||||
build:
|
||||
@echo "Building project (full rebuild with search index)..."
|
||||
@@ -11,12 +10,14 @@ json:
|
||||
@echo "Generating the JSON output..."
|
||||
/usr/bin/python3 search-index.py
|
||||
|
||||
# Fast build without search index
|
||||
json-2:
|
||||
@echo "Generating the JSON output 2..."
|
||||
/usr/bin/python3 generate_sidebar_tree.py
|
||||
|
||||
fast:
|
||||
@echo "Building project (fast rebuild without search index)..."
|
||||
emacs -Q --script lisp/build.el --fast
|
||||
|
||||
# Clean output directory
|
||||
clean:
|
||||
@echo "Cleaning output directory..."
|
||||
rm -rf output/
|
||||
@@ -29,7 +30,12 @@ tests:
|
||||
@echo "Running all the tests..."
|
||||
emacs -batch -l ert -l tests/macros-tests.el -f ert-run-tests-batch-and-exit
|
||||
|
||||
# Show help message
|
||||
fix-permissions:
|
||||
echo "shakkal123" | sudo -S chown -R zaine:zaine .
|
||||
|
||||
restore-permissions:
|
||||
echo "shakkal123" | sudo -S chown -R 33:33 .
|
||||
|
||||
help:
|
||||
@echo "Available targets:"
|
||||
@echo " make - Clean, build, and generate search index (default)"
|
||||
@@ -39,4 +45,6 @@ help:
|
||||
@echo " make clean - Remove output directory"
|
||||
@echo " make tests - Run all of the tests associated with the project"
|
||||
@echo " make norm - Move all files that end with ~ to the backup folder"
|
||||
@echo " make fix-permissions - Fix permissions for the project directory (requires sudo)"
|
||||
@echo " make restore-permissions - Restore permissions for the project directory (requires sudo)"
|
||||
@echo " make help - Show this help message"
|
||||
|
||||
Reference in New Issue
Block a user