diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-25 08:55:19 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-25 08:55:19 +0000 |
commit | 4315acb8c0a40703b17f837ab82e9a691b5c14ab (patch) | |
tree | 0f4047425c9a8bbc6eac5b8118fa219ce5415029 /Makefile.lib | |
parent | c7547cff1951aec5e36580a8497dd13020dfc8d3 (diff) |
Add a generic rule for installing files
Diffstat (limited to 'Makefile.lib')
-rw-r--r-- | Makefile.lib | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile.lib b/Makefile.lib index b9114a07c..cacf92105 100644 --- a/Makefile.lib +++ b/Makefile.lib @@ -3,11 +3,23 @@ default: all # Include Autoconf variables. Makefile.config: Makefile.config.in - ./config.status + ./config.status --file $@ include Makefile.config +# Installing stuff. +define install-file-in = + + install:: $(1)/$(notdir $(2)) + + $(1)/$(notdir $(2)): $(2) + install -d $(1) + install -t $(1) $(2) + +endef + + # Include all sub-Makefiles. define include_sub_makefile = d := $$(patsubst %/, %, $$(dir $(1))) |