Skip to content

Instantly share code, notes, and snippets.

View nguyenvukhang's full-sized avatar
📚
Doing the exercise left for the reader

Khang nguyenvukhang

📚
Doing the exercise left for the reader
View GitHub Profile
@nguyenvukhang
nguyenvukhang / Makefile
Created March 23, 2026 02:39
Basics of GPG
EMAIL := brew4k@gmail.com
FINGERPRINT :=
TEST_INPUT := bernoulli.jpg
TEST_OUTPUT := output.jpg
GPG := /usr/bin/gpg
current:
new:
@nguyenvukhang
nguyenvukhang / makefile_abspath.md
Last active February 3, 2026 03:57
Getting the absolute path of the current `Makefile`

The gist: put this at the top of the Makefile:

MAKEFILE_PATH := $(realpath $(lastword $(MAKEFILE_LIST)))
MAKEFILE_DIR := $(dir $(MAKEFILE_PATH))

Explanation

MAKEFILE_LIST, according to this,