make/common/Defs.gmk

Print this page

        

@@ -468,10 +468,18 @@
 $(MKDIR) -p $$dest; \
 $(CP) -f $@ $$dest; \
 $(TouchModule)
 endef
 
+# Install a cmd to its module
+define install-module-cmd-file
+dest=$(MODULE_DEST_DIR)/bin ; \
+$(MKDIR) -p $$dest; \
+$(CP) -f $@ $$dest; \
+$(TouchModule)
+endef
+
 # Install all files from the directory to its module
 define install-module-dir
 dest=$(call GetModuleDest, $(@D)/) ; \
 $(MKDIR) -p $$dest; \
 $(CP) -rf $(@D)/* $$dest; \

@@ -520,10 +528,16 @@
 $(prep-target)
 $(CP) $< $@
 @$(install-module-file)
 endef
 
+define install-cmd-file
+$(prep-target)
+$(CP) $< $@
+@$(install-module-cmd-file)
+endef
+
 # Include header files always belongs the base module
 define install-include-file
 $(prep-target)
 $(CP) $< $@
 dest=$(call GetBaseModuleDest, $(@D)/) ; \