tools(make): much better Makefile.dev
This commit is contained in:
+34
-10
@@ -3,20 +3,43 @@
|
||||
## Makefile.dev targets
|
||||
|
||||
```text
|
||||
clean remove build folder
|
||||
build build project into build/forge
|
||||
run run project with test args
|
||||
demo run project with demo mode
|
||||
valgrind valgrind analysis
|
||||
full-clean remove build files and untracked files
|
||||
test-release try to build release
|
||||
release-% make full release of version %
|
||||
release-arch make arch-linux release package
|
||||
Usage: make --no-print-directory [target1] [target2] ...
|
||||
|
||||
Commands/Targets:
|
||||
help show this message
|
||||
init init project
|
||||
clean clean build artifacts
|
||||
full-clean remove any unversioned file
|
||||
build build project
|
||||
build-no-video build project no video in
|
||||
run run project with $RUN_ARGS
|
||||
run-% run {project} with $RUN_ARGS
|
||||
format format project
|
||||
release-test test release
|
||||
release-% build release {version}
|
||||
rm-build rm -rf build
|
||||
git-clean git clean -f -x
|
||||
rm-deps rm -rf */.deps
|
||||
clang-format clang-format -i src/*
|
||||
exec-build ./build/forge $RUN_ARGS
|
||||
exec-build-% ./build/forge --project={project} $RUN_ARGS
|
||||
aclocal aclocal
|
||||
autoconf autoconf
|
||||
automake automake --add-missing
|
||||
start-configure ./configure
|
||||
make-% make {target}
|
||||
cp-release cp forge-steel-xxx.tar.gz build/
|
||||
git-submodule-update git submodule update --init --recursive
|
||||
git-pull git pull origin main
|
||||
prepare-configure-% sed -i {version} configure.ac
|
||||
prepare-pkgbuild-% sed -i {version} PKGBUILD
|
||||
git-commit-release git commit -am "forge (steel) v{version}"
|
||||
makepkg makepkg
|
||||
```
|
||||
|
||||
## Release guide
|
||||
|
||||
```shell
|
||||
```bash
|
||||
# make full build
|
||||
make -f Makefile.dev release-1.0.0
|
||||
# push release
|
||||
@@ -25,6 +48,7 @@ git push origin main --tags
|
||||
# attach .tar.gz to the github release
|
||||
make -f Makefile.dev release-arch
|
||||
# attach .pkg.tar.zst to the github release
|
||||
make full-clean
|
||||
```
|
||||
|
||||
## Roadmap
|
||||
|
||||
Reference in New Issue
Block a user