Skip to content

Commit

Permalink
chore(build): format Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Apr 21, 2024
1 parent 95babd7 commit 7c70c25
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@

.PHONY: clean help target test

TARGET_DIR := $(shell pwd)
TARGET_EXE := ./out/surf
TARGET_DIR := $(shell pwd)
TARGET_EXE := ./out/surf

GN_DIR := third_party/gn
GN_EXE := $(TARGET_DIR)/$(GN_DIR)/out/gn
GN_DIR := third_party/gn
GN_EXE := $(TARGET_DIR)/$(GN_DIR)/out/gn

NINJA_DIR := third_party/ninja
NINJA_EXE := $(TARGET_DIR)/$(NINJA_DIR)/ninja
NINJA_DIR := third_party/ninja
NINJA_EXE := $(TARGET_DIR)/$(NINJA_DIR)/ninja

debug: $(TARGET_EXE) ## Compile debug build
debug: $(TARGET_EXE) ## Compile debug build

clean: ## Remove built artifacts
clean: ## Remove built artifacts
rm -rf ./out

lint:
clang-format -i **/*.cc **/*.h
clang-format -i **/*.cc **/*.h

test: $(TARGET_EXE) ## Run E2E tests
python -m pytest ./tests/*
test: $(TARGET_EXE) ## Run tests
python -m pytest ./tests/*

$(TARGET_EXE): $(GN_EXE)
$(TARGET_EXE): $(GN_EXE)
$(GN_EXE) gen out
$(NINJA_EXE) -C out

$(GN_EXE): $(NINJA_EXE)
cd $(GN_DIR) && python build/gen.py && $(NINJA_EXE) -C out
$(GN_EXE): $(NINJA_EXE)
cd $(GN_DIR) && python build/gen.py && $(NINJA_EXE) -C out

$(NINJA_EXE):
cd $(NINJA_DIR) && ./configure.py --bootstrap
cd $(NINJA_DIR) && ./configure.py --bootstrap

0 comments on commit 7c70c25

Please sign in to comment.