topdir.mk: Add target gitignore #102

Merged
Jan Lindemann merged 4 commits from jan/feature/20260913-topdir-mk-add-target-gitignore into master 2026-09-13 23:21:29 +02:00 AGit

This PR adds a gitignore target to topdir.mk, backed by new JW_PKG_TMPL_SEARCH_PATH and JW_PKG_TMPL_UPDATE variables.

topdir.mk: Add JW_PKG_TMPL_XXX

Add variables to shorten typical invocations of "jw-pkg project update --format tmpl", and use them in py-topdir.mk

JW_PKG_TMPL_SEARCH_PATH JW_PKG_TMPL_UPDATE

topdir.mk: Add target gitignore

Add a target gitignore to topdir.mk, which blasts jw-pkg's default idea of how .gitignore should look like into $(TOPDIR)/.gitignore. It's not a prerequisite of any other target, because it's not meant to run automatically. The idea is to keep some central maintenance of what should be in there from jw-pkg's perspective, make it convenvient to update, but leave the final decision to the commiter of any project using the machinery.

jw-pkg-create-project.sh: Use make gitignore

jw-pkg-create-project.sh contains its own .gitignore template, which is redundant to the new gitignore mechanism. Replace it.

.gitignore: Run make gitignore

Update .gitignore by running "make gitignore. Add a couple of jw-pkg- specific build-artifacts to GITIGNORE_PATTERNS_END before:

.cache-projects.mk make/ssh-wrapper.sh

Also cancel the automatic inclusion of file paths containing jw-pkg with an empty GITIGNORE_PATTERNS_TOP.

This PR adds a gitignore target to topdir.mk, backed by new JW_PKG_TMPL_SEARCH_PATH and JW_PKG_TMPL_UPDATE variables. #### topdir.mk: Add JW_PKG_TMPL_XXX Add variables to shorten typical invocations of "jw-pkg project update --format tmpl", and use them in py-topdir.mk JW_PKG_TMPL_SEARCH_PATH JW_PKG_TMPL_UPDATE #### topdir.mk: Add target gitignore Add a target gitignore to topdir.mk, which blasts jw-pkg's default idea of how .gitignore should look like into $(TOPDIR)/.gitignore. It's not a prerequisite of any other target, because it's not meant to run automatically. The idea is to keep some central maintenance of what should be in there from jw-pkg's perspective, make it convenvient to update, but leave the final decision to the commiter of any project using the machinery. #### jw-pkg-create-project.sh: Use make gitignore jw-pkg-create-project.sh contains its own .gitignore template, which is redundant to the new gitignore mechanism. Replace it. #### .gitignore: Run make gitignore Update .gitignore by running "make gitignore. Add a couple of jw-pkg- specific build-artifacts to GITIGNORE_PATTERNS_END before: .cache-projects.mk make/ssh-wrapper.sh Also cancel the automatic inclusion of file paths containing jw-pkg with an empty GITIGNORE_PATTERNS_TOP.
Add variables to shorten typical invocations of "jw-pkg project update
--format tmpl", and use them in py-topdir.mk

 JW_PKG_TMPL_SEARCH_PATH
 JW_PKG_TMPL_UPDATE

Signed-off-by: Jan Lindemann <jan@janware.com>
Add a target gitignore to topdir.mk, which blasts jw-pkg's default idea of
how .gitignore should look like into $(TOPDIR)/.gitignore. It's not a
prerequisite of any other target, because it's not meant to run
automatically. The idea is to keep some central maintenance of what should
be in there from jw-pkg's perspective, make it convenvient to update, but
leave the final decision to the commiter of any project using the
machinery.

Signed-off-by: Jan Lindemann <jan@janware.com>
jw-pkg-create-project.sh contains its own .gitignore template, which is
redundant to the new gitignore mechanism. Replace it.

Signed-off-by: Jan Lindemann <jan@janware.com>
.gitignore: Run make gitignore
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 4m19s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m50s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 4m31s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m37s
CI / Packaging test (push) Successful in 0s
673953e56c
Update .gitignore by running "make gitignore. Add a couple of jw-pkg-
specific build-artifacts to GITIGNORE_PATTERNS_END before:

  .cache-projects.mk
  make/ssh-wrapper.sh

Also cancel the automatic inclusion of file paths containing jw-pkg with
an empty GITIGNORE_PATTERNS_TOP.

Signed-off-by: Jan Lindemann <jan@janware.com>
Jan Lindemann scheduled this pull request to auto merge when all checks succeed 2026-09-13 23:09:28 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
janware/jw-pkg!102
No description provided.