Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add comments to the example Makefile #156

Merged
merged 2 commits into from
Oct 21, 2022
Merged

Conversation

yitsushi
Copy link
Contributor

Added comments through a new help target because that way anyone can use make help in the examples/make directory and get the full list of targets and a description.

Closes #110

References:

Added comments through a new `help` target because that way anyone can
use `make help` in the `examples/make` directory and get the full list
of targets and a description.

Closes #110

References:
* #110
* https://www.thapaliya.com/en/writings/well-documented-makefiles/
@yitsushi yitsushi added the area/documentation Documentation related label Oct 18, 2022
Copy link
Contributor

@mandelsoft mandelsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've noticed that this Makefile is quite old and simple,

there are more elaborated ones below the components folder for the TOI scenario example,
may be we could add references to these examples, also (at the place where this makefile is referenced).

These one support command line overrides for repository, multi-arch image builds, etc.


REPO_ROOT := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
VERSION = $(shell cat $(REPO_ROOT)/VERSION)
COMMIT = $(shell git rev-parse HEAD)
EFFECTIVE_VERSION = $(VERSION)-$(COMMIT)

.PHONY: ctf
ctf: ca
ctf: ca ## Create CTF from componet archive
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

componet -> component

@yitsushi yitsushi requested a review from mandelsoft October 20, 2022 09:54
@yitsushi yitsushi merged commit e1046af into main Oct 21, 2022
@mandelsoft mandelsoft deleted the 110-example-comments branch December 21, 2022 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Documentation related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add comments to Makefile example
2 participants