summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index aa55e64..18e9c64 100644
--- a/Makefile
+++ b/Makefile
@@ -14,12 +14,12 @@ all: install
define _copy =
install -d $$(dir $$@)
- install -m 644 $$< $$@
+ install -m $(if $(1),$(1),644) $$< $$@
endef
define copy =
$(ROOT_DIR)/$(2)/$(3): $(1)/$(3)
-$(call _copy)
+$(call _copy,$(4))
files += $(2)/$(3)
endef
@@ -47,7 +47,7 @@ $(ROOT_DIR)/$(luadir)/modules:
install -d $@
$(eval $(call link,config,$(confdir)))
-$(eval $(call copy,config,$(confdir),aaa.json))
+$(eval $(call copy,config,$(confdir),aaa.json,600))
$(eval $(call copy,.,$(resdir),LICENSE))