Browse Source

Add a function to install private root files (0400)

master
Peter J. Jones 6 years ago
parent
commit
40debb1b34
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      generic/mk/files.mk

+ 11
- 0
generic/mk/files.mk View File

@@ -18,6 +18,17 @@ $(1): $(if $(2),$(2),$(notdir $(1)))
$(if $(3),$(3),)
endef

################################################################################
# $1: Full path to the target file
# $2: Local file name (optional, defaults to $(notdir $(2)))
# $3: Optional command to run after the install
define GRUNT_INSTALL_PRIVATE_FILE
install: $(1)
$(1): $(if $(2),$(2),$(notdir $(1)))
$(GRUNT_INSTALL_ROOT_ONLY) $$< $$@
$(if $(3),$(3),)
endef

################################################################################
# $1: Full path to the target file
# $2: Local file name (optional, defaults to $(notdir $(2)))

Loading…
Cancel
Save