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)))
18 18
 	$(if $(3),$(3),)
19 19
 endef
20 20
 
21
+################################################################################
22
+# $1: Full path to the target file
23
+# $2: Local file name (optional, defaults to $(notdir $(2)))
24
+# $3: Optional command to run after the install
25
+define GRUNT_INSTALL_PRIVATE_FILE
26
+install: $(1)
27
+$(1): $(if $(2),$(2),$(notdir $(1)))
28
+	$(GRUNT_INSTALL_ROOT_ONLY) $$< $$@
29
+	$(if $(3),$(3),)
30
+endef
31
+
21 32
 ################################################################################
22 33
 # $1: Full path to the target file
23 34
 # $2: Local file name (optional, defaults to $(notdir $(2)))

Loading…
Cancel
Save