makefile: add gitconfig target

This commit is contained in:
Jeremy Baxter 2024-06-11 15:11:54 +12:00
parent 95e410feff
commit 9267342649
2 changed files with 6 additions and 1 deletions

View file

@ -72,6 +72,10 @@ format:
find . -maxdepth 1 -iname '*.c' -o -iname '*.h' \ find . -maxdepth 1 -iname '*.c' -o -iname '*.h' \
| xargs ${CLANG_FORMAT} -i | xargs ${CLANG_FORMAT} -i
gitconfig:
git config format.subjectPrefix "PATCH callisto"
git config sendemail.to '~jeremy/public-inbox@lists.sr.ht'
install: install:
mkdir -p "${DESTDIR}${PREFIX}"/bin mkdir -p "${DESTDIR}${PREFIX}"/bin
mkdir -p "${DESTDIR}${PREFIX}"/include/callisto mkdir -p "${DESTDIR}${PREFIX}"/include/callisto
@ -82,4 +86,4 @@ install:
cp -f libcallisto.a "${DESTDIR}${PREFIX}"/lib/ cp -f libcallisto.a "${DESTDIR}${PREFIX}"/lib/
cp -f man/csto.1 "${DESTDIR}${PREFIX}"/share/man/man1/ cp -f man/csto.1 "${DESTDIR}${PREFIX}"/share/man/man1/
.PHONY: all clean doc format install .PHONY: all clean doc format gitconfig install

View file

@ -115,6 +115,7 @@ an email to ~jeremy/callisto@todo.sr.ht.
## contributing ## contributing
Send patches to [my public inbox][2] using [git send-email][3]. Send patches to [my public inbox][2] using [git send-email][3].
`make gitconfig` will set you up with the correct settings.
Preferred code style is detailed in the style.md document but is not Preferred code style is detailed in the style.md document but is not
required. Thanks :) required. Thanks :)