[PR #13] [MERGED] Add a Makefile with a few targets. #1197

Closed
opened 2025-12-29 02:29:11 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/13
Author: @cure
Created: 4/25/2021
Status: Merged
Merged: 4/25/2021
Merged by: @juanfont

Base: mainHead: add-Makefile


📝 Commits (1)

  • 6aedc11 Add a Makefile with a few targets. The default is 'build'. The build

📊 Changes

4 files changed (+67 additions, -4 deletions)

View changed files

Makefile (+24 -0)
📝 README.md (+3 -3)
📝 cmd/headscale/headscale.go (+1 -1)
scripts/version-at-commit.sh (+39 -0)

📄 Description

The default is 'build'. The build target calls the new version-at-commit.sh script which will automatically populate the version variable inside the Headscale binary.

Once we start tagging releases on the git tree, that will come in handy.

The Makefile also has a 'test' target (does nothing yet, no tests yet) and a 'dev' target, which runs linters, tests, and finally builds.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/13 **Author:** [@cure](https://github.com/cure) **Created:** 4/25/2021 **Status:** ✅ Merged **Merged:** 4/25/2021 **Merged by:** [@juanfont](https://github.com/juanfont) **Base:** `main` ← **Head:** `add-Makefile` --- ### 📝 Commits (1) - [`6aedc11`](https://github.com/juanfont/headscale/commit/6aedc1111b507ed745631598b332628d5d6a462a) Add a Makefile with a few targets. The default is 'build'. The build ### 📊 Changes **4 files changed** (+67 additions, -4 deletions) <details> <summary>View changed files</summary> ➕ `Makefile` (+24 -0) 📝 `README.md` (+3 -3) 📝 `cmd/headscale/headscale.go` (+1 -1) ➕ `scripts/version-at-commit.sh` (+39 -0) </details> ### 📄 Description The default is 'build'. The build target calls the new version-at-commit.sh script which will automatically populate the version variable inside the Headscale binary. Once we start tagging releases on the git tree, that will come in handy. The Makefile also has a 'test' target (does nothing yet, no tests yet) and a 'dev' target, which runs linters, tests, and finally builds. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 02:29:11 +01:00
adam closed this issue 2025-12-29 02:29:11 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1197