File tree Expand file tree Collapse file tree 5 files changed +15
-6
lines changed Expand file tree Collapse file tree 5 files changed +15
-6
lines changed Original file line number Diff line number Diff line change
1
+ run :
2
+ ./scripts/run.sh
3
+
4
+ new-project :
5
+ ./scripts/create-project.sh $(filter-out $@ ,$(MAKECMDGOALS ) )
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ Lazuli is an engine for 3d graphics.
3
3
4
4
# How-to
5
5
## Create a new project
6
- To create a new project using this engine, run [ run script ] ( ./scripts/create -project.sh ) with the project name as the second argument.
7
- For example,
6
+ To create a new project using this engine, run ` make new -project` from the root directory with the project name as the second argument.
7
+ For example:
8
8
``` bash
9
- ./scripts/create -project.sh My-awesome-project
9
+ make new -project My-awesome-project
10
10
```
11
11
12
12
The project will be created in the same parent directory that this repository resides in.
@@ -18,7 +18,7 @@ For example:
18
18
19
19
# Contributing
20
20
## Running a test scene
21
- To start the engine locally, run [ run.sh ] ( /scripts/run.sh ) . The scene that will be used is defined in [ the entrypoint file] ( ./src/bin.rs ) .
21
+ To start the engine locally, run ` make run` from the root directory . The scene that will be used is defined in [ the entrypoint file] ( ./src/bin.rs ) .
22
22
23
23
## Coding standards
24
24
### Shaders
Original file line number Diff line number Diff line change
1
+ run :
2
+ ./scripts/run.sh
Original file line number Diff line number Diff line change 2
2
This project uses [ Lazuli] ( https://github.com/lucdrenth/lazuli ) as a graphics engine.
3
3
4
4
# Running
5
- To run the project as intended, use [ run.sh] ( ./scripts/run.sh ) .
6
- Alternatively, run ` cargo run ` in a terminal.
5
+ To run the project, run ` make run ` from the root directory.
Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ cp -r ${LAZULI_DIRECTORY}/project-template/src ./
78
78
printf " README.md\n"
79
79
cp ${LAZULI_DIRECTORY} /project-template/README.md ./
80
80
81
+ printf " Makefile\n"
82
+ cp ${LAZULI_DIRECTORY} /project-template/Makefile ./
83
+
81
84
# Getting here means we successfully created the project
82
85
log_info " Successfully created project '${NEW_PROJECT_NAME} '"
83
86
You can’t perform that action at this time.
0 commit comments