1 # Makefile helper, supplying configuration files,
2 # defined as make prerequisites in the project's Makefile.
4 # For example, project's Makefile might say:
6 # deploy: src/core/local_settings.py
10 # This file fulfills this prerequisite by looking for local_settings.py
11 # in the directory it sits in, and copying it to the needed location.
13 # This file expects to be used as:
15 # make -C (release-dir) -f (path-to-this-file) ...
17 # and assumes there's a Makefile in the release directory.
20 HERE := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
23 # This loads the Makefile from the release directory.
27 # Match any needed path, if we can find a matching file for it, and copy it.
29 %: $(HERE)$$(notdir $$@)
33 # Avoid circular rules.