1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-12-22 13:08:13 +00:00
senpy/community-plugins/.makefiles
J. Fernando Sánchez e1d888ebd6 Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8'
git-subtree-dir: community-plugins
git-subtree-mainline: 7f712952be
git-subtree-split: 4c73797246
2023-09-20 13:32:30 +02:00
..
base.mk Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
docker.mk Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
git.mk Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
k8s.mk Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
makefiles.mk Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
precommit.mk Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
python.mk Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
README.md Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00

These makefiles are recipes for several common tasks in different types of projects. To add them to your project, simply do:

git remote add makefiles ssh://git@lab.cluster.gsi.dit.upm.es:2200/docs/templates/makefiles.git
git subtree add --prefix=.makefiles/ makefiles master
touch Makefile
echo "include .makefiles/base.mk" >> Makefile

Now you can take advantage of the recipes. For instance, to add useful targets for a python project, just add this to your Makefile:

include .makefiles/python.mk

You may need to set special variables like the name of your project or the python versions you're targetting. Take a look at each specific .mk file for more information, and the Makefile in the senpy project for a real use case.

If you update the makefiles from your repository, make sure to push the changes for review in upstream (this repository):

make makefiles-push

It will automatically commit all unstaged changes in the .makefiles folder.