Skip to content

Commit

Permalink
Slightly improve Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
XorTroll committed Aug 19, 2023
1 parent bd6ba57 commit ff6c3f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 1 addition & 2 deletions Goldleaf/Makefile
Expand Up @@ -51,8 +51,7 @@ VER_MICRO := 0
APP_TITLE := Goldleaf
APP_AUTHOR := XorTroll

# "-dev" prefix is manually appended when a new version is under development
APP_VERSION := $(VER_MAJOR).$(VER_MINOR).$(VER_MICRO)-dev
APP_VERSION := $(VER_MAJOR).$(VER_MINOR).$(VER_MICRO)$(DEV_PREFIX)

#---------------------------------------------------------------------------------
# options for code generation
Expand Down
12 changes: 7 additions & 5 deletions Makefile
@@ -1,21 +1,23 @@
# Note: run 'make setup' for the first time (to install libusbhsfs packages), after that simply run 'make' to avoid unnecessary recompiles
# Note: for the first time, run 'make setup' first (to install libusbhsfs packages), after that simply run 'make' or 'make dev' to build the project

.PHONY: all allclean clean libclean setup arc
.PHONY: all dev allclean clean libclean setup arc

all:
@$(MAKE) -C libusbhsfs/ BUILD_TYPE=GPL install
@$(MAKE) -C Plutonium/
@$(MAKE) -C Goldleaf/

dev:
@$(MAKE) -C libusbhsfs/ BUILD_TYPE=GPL install
@$(MAKE) -C Plutonium/
@$(MAKE) -C Goldleaf/ DEV_PREFIX=-dev

arc:
@python arc/arc.py gen_db default+$(CURDIR)/Goldleaf/include/base_Results.rc.hpp
@python arc/arc.py gen_cpp rc GLEAF $(CURDIR)/Goldleaf/include/base_Results.gen.hpp

setup: arc
@$(MAKE) -C libusbhsfs/ fs-libs
@$(MAKE) -C libusbhsfs/ BUILD_TYPE=GPL install
@$(MAKE) -C Plutonium/
@$(MAKE) -C Goldleaf/

allclean: libclean clean

Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -350,7 +350,7 @@ You will also need to install the following packages with devkitPro's pacman:

Remember to clone this repository recursively (`git clone <this-repo-url> --recurse-submodules`) since Goldleaf makes use of submodules.

In order to build Goldleaf, run `make setup` (for the first time, just `make` for the following builds) and wait for it to finish building.
In order to build Goldleaf, run `make setup` (only for the first time), then just run `make` (or `make dev` for a dev version) and wait for it to finish building.

In order to build Quark, just execute the `build.sh` script in its directory.

Expand Down

0 comments on commit ff6c3f6

Please sign in to comment.