Ticket #421 (new enhancement)
Opened 13 months ago
Allow modules to be symlinked from elsewhere
| Reported by: | nwfilardo@… | Owned by: | |
|---|---|---|---|
| Priority: | trivial | Milestone: | |
| Component: | LuCI Base | Keywords: | |
| Cc: |
Description
The default instructions for writing modules say to reference config.mk and module.mk by relative paths; unfortunately, this does not work when symbolic links are used to bring modules in to the tree from elsewhere.
I propose the following patch, which grabs the build/ directory into an exported variable BUILDPATH, allowing modules to write the location-insensitive
include $(BUILDPATH)config.mk include $(BUILDPATH)module.mk
Index: Makefile =================================================================== --- Makefile (revision 8690) +++ Makefile (working copy) @@ -1,3 +1,6 @@ +BUILDPATH=$(dir $(abspath $(lastword $(MAKEFILE_LIST)))) +export BUILDPATH + include build/config.mk MODULES = contrib/* applications/* libs/* modules/* themes/* i18n/*
Attachments
Note: See
TracTickets for help on using
tickets.
