-
Notifications
You must be signed in to change notification settings - Fork 2
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
3c9a400
commit fca9207
Showing
1 changed file
with
8 additions
and
13 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,20 +1,15 @@ | ||
# Makefile for a web frontend project | ||
# Makefile for building the web frontend | ||
|
||
# Variables | ||
BUILD_DIR = build | ||
.PHONY: all webfrontend-build clean | ||
|
||
# Default target | ||
all: build | ||
all: webfrontend-build | ||
|
||
# Build target | ||
build: | ||
yarn install | ||
yarn build | ||
# Target for building the web frontend | ||
webfrontend-build: | ||
yarn install # Install dependencies | ||
yarn build # Build the project | ||
|
||
# Clean target | ||
clean: | ||
rm -rf $(BUILD_DIR) | ||
|
||
# Test target | ||
test: | ||
yarn test | ||
rm -rf build # Adjust according to your project's build output |