These tools add standard components (sub-makefiles and build scripts) as well as example starters for the Makefile and circle.yml.
git remote add -f build-tools [email protected]:drud/build-tools.git
git merge -s ours --allow-unrelated-histories build-tools/master
git read-tree --prefix=build-tools -u build-tools/master
git commit -m "Added build-tools for standard makefile as subtree"
# If there is not a build-tools remote, add it
git remote add -f build-tools [email protected]:drud/build-tools.git
# Fetch/merge current build-tools (pull doesn't work if set to branch.autosetuprebase=always)
git fetch build-tools
git merge -s subtree build-tools/master
- Copy the Makefile.example to "Makefile" in the root of your project
- Edit the sub-Makefiles included
- Update the variables at the top of the Makefile
- Add the items from gitignore_example to your .gitignore
- Update the project README.md to explain how to build - the target reminders in the paragraph below may be helpful.
Using this base will allow you to build with standard targets like build, test, container, push, clean:
make
make test
make container
make push
make VERSION=0.3.0 container
make VERSION=0.3.0 push
make clean