diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-05-07 17:28:03 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-05-07 17:28:03 +0200 |
| commit | 28c1364820e3758c3af45e5d8b0d75f7b8cf60a3 (patch) | |
| tree | 300c0253b15888f4ec542fe1e95397b1f7e77530 /common.mk | |
| parent | 26c7c6917d834b0fa8448dffe2b07fe6941e93b3 (diff) | |
| download | unterricht-28c1364820e3758c3af45e5d8b0d75f7b8cf60a3.tar.gz unterricht-28c1364820e3758c3af45e5d8b0d75f7b8cf60a3.zip | |
support special subdir Makefiles
* dynamically find the location of common.mk
* specify MAKEFILE_DIR in common.mk if not already defined
Diffstat (limited to 'common.mk')
| -rw-r--r-- | common.mk | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,8 @@ +# The full path to the Makefile +MAKEFILE_PATH ?= $(abspath $(lastword $(MAKEFILE_LIST))) +# The path to the directory of the Makefile +MAKEFILE_DIR ?= $(dir $(MAKEFILE_PATH)) + IMGS := $(wildcard img/*) LATEX_BASE := $(MAKEFILE_DIR)latex |
