Add an install target to all makefiles. For the import build, the top-level Makefile now does two passes: (1) builds libapp.a, then (2) installs the programs (not yet finished)

This commit is contained in:
Gregory Nutt 2014-09-06 08:00:47 -06:00
parent 055c3fc6fa
commit d6bcd1a93a
151 changed files with 437 additions and 49 deletions

View File

@ -110,72 +110,53 @@ BIN = libapps$(LIBEXT)
# Build targets
all: $(BIN)
.PHONY: $(INSTALLED_APPS) import context depend clean distclean
.PHONY: import install context .depdirs depend clean distclean
define SDIR_template
$(1)_$(2):
$(Q) $(MAKE) -C $(1) $(2) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
endef
$(INSTALLED_APPS):
$(Q) $(MAKE) -C $@ TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
$(BIN): $(INSTALLED_APPS)
$(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),all)))
$(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),install)))
$(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),context)))
$(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),depend)))
$(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),clean)))
$(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),distclean)))
$(BIN): $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_all)
install: $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_install)
.import: $(BIN) install
import:
$(Q) $(MAKE) TOPDIR="$(APPDIR)/import"
$(Q) $(MAKE) .import TOPDIR="$(APPDIR)/import"
context:
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
$(Q) for %%G in ($(INSTALLED_APPS)) do ( \
$(MAKE) -C %%G TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" context \
)
else
$(Q) for dir in $(INSTALLED_APPS) ; do \
$(MAKE) -C $$dir TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" context ; \
done
endif
context: $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_context)
.depend: context Makefile $(SRCS)
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
$(Q) for %%G in ($(INSTALLED_APPS)) do ( \
if exist %%G\.depend del /f /q %%G\.depend \
$(MAKE) -C %%G TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" depend \
)
else
$(Q) for dir in $(INSTALLED_APPS) ; do \
rm -f $$dir/.depend ; \
$(MAKE) -C $$dir TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" depend ; \
done
endif
.depdirs: $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_depend)
.depend: context Makefile .depdirs
$(Q) touch $@
depend: .depend
clean:
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
$(Q) for %%G in ($(SUBDIRS)) do ( \
$(MAKE) -C %%G clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" \
)
else
$(Q) for dir in $(SUBDIRS) ; do \
$(MAKE) -C $$dir clean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
done
endif
clean: $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_clean)
$(call DELFILE, $(BIN))
$(call CLEAN)
distclean:
distclean: $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_distclean)
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
$(Q) for %%G in ($(SUBDIRS)) do ( \
$(MAKE) -C %%G distclean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" \
)
$(call DELFILE, .depend)
$(Q) ( if exist external ( \
echo ********************************************************" \
echo * The external directory/link must be removed manually *" \
echo ********************************************************" \
)
else
$(Q) for dir in $(SUBDIRS) ; do \
$(MAKE) -C $$dir distclean TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"; \
done
$(call DELFILE, .depend)
$(Q) ( if [ -e external ]; then \
echo "********************************************************"; \
echo "* The external directory/link must be removed manually *"; \
@ -183,5 +164,6 @@ else
fi; \
)
endif
$(call DELFILE, .depend)

View File

@ -106,6 +106,8 @@ endif
$(call ARCHIVE, $(BIN), $(OBJS))
$(Q) touch .built
install:
context:
$(Q) $(MAKE) -C registry context TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"

View File

@ -48,6 +48,8 @@ all:
# This must run before any other context target
install:
context: .updated
depend:

View File

@ -77,6 +77,8 @@ $(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),distclean)))
nothing:
install:
context: $(foreach SDIR, $(CNTXTDIRS), $(SDIR)_context)
depend: $(foreach SDIR, $(SUBDIRS), $(SDIR)_depend)

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -92,8 +92,12 @@ $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
$(call REGISTER,$(APPNAME1),$(PRIORITY1),$(STACKSIZE1),$(APPNAME1)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -90,8 +90,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -104,8 +104,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -88,8 +88,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -86,6 +86,8 @@ really_build: $(OBJS)
@$(MAKE) -C tests TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" CROSSDEV=$(CROSSDEV)
@$(MAKE) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" really_build
install:
context:
# We can't make dependencies in this directory because the required

View File

@ -82,7 +82,8 @@ build: $(foreach DIR, $(BUILD_SUBDIRS), $(DIR)_build)
# Install each program in the romfs directory
install: $(foreach DIR, $(BUILD_SUBDIRS), $(DIR)_install)
install:
$(foreach DIR, $(BUILD_SUBDIRS), $(DIR)_install)
# Create the romfs directory

View File

@ -83,5 +83,6 @@ clean:
$(call CLEAN)
install:
$(Q) mkdir -p $(ROMFS_DIR)
$(Q) install $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -83,5 +83,6 @@ clean:
$(call CLEAN)
install:
$(Q) mkdir -p $(ROMFS_DIR)
$(Q) install $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -139,7 +139,8 @@ clean:
$(call DELFILE, $(BIN4))
$(call CLEAN)
install: $(ALL_BIN)
install:
$(ALL_BIN)
$(Q) mkdir -p $(ROMFS_DIR)
$(Q) install $(BIN1) $(ROMFS_DIR)/$(BIN1)
$(Q) install $(BIN2) $(ROMFS_DIR)/$(BIN2)

View File

@ -83,5 +83,6 @@ clean:
$(call CLEAN)
install:
$(Q) mkdir -p $(ROMFS_DIR)
$(Q) install $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -83,5 +83,6 @@ clean:
$(call CLEAN)
install:
$(Q) mkdir -p $(ROMFS_DIR)
$(Q) install $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -83,5 +83,6 @@ clean:
$(call CLEAN)
install:
$(Q) mkdir -p $(ROMFS_DIR)
$(Q) install $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -83,5 +83,6 @@ clean:
$(call CLEAN)
install:
$(Q) mkdir -p $(ROMFS_DIR)
$(Q) install $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -84,5 +84,6 @@ clean:
$(call CLEAN)
install:
$(Q) mkdir -p $(ROMFS_DIR)
$(Q) install $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -83,5 +83,6 @@ clean:
$(call CLEAN)
install:
$(Q) mkdir -p $(ROMFS_DIR)
$(Q) install $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -92,8 +92,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -85,8 +85,12 @@ $(BUILTIN_REGISTRY)$(DELIM)ftpd_start.bdat: $(DEPCONFIG) Makefile
$(BUILTIN_REGISTRY)$(DELIM)ftpd_stop.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,ftpd_stop,SCHED_PRIORITY_DEFAULT,2048,ftpd_stop)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)ftpd_start.bdat $(BUILTIN_REGISTRY)$(DELIM)ftpd_stop.bdat
else
install:
context:
endif

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -104,8 +104,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -93,8 +93,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -85,8 +85,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -85,8 +85,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -120,8 +120,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -87,6 +87,8 @@ $(COBJS): %$(OBJEXT): %.c
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
#else
#context:

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -90,8 +90,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -80,6 +80,8 @@ headers:
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
# We can't make dependencies in this directory because the required

View File

@ -63,7 +63,8 @@ build: $(foreach DIR, $(SUBDIRS), $(DIR)_build)
# Install each program in the romfs directory
install: $(foreach DIR, $(SUBDIRS), $(DIR)_install)
install:
$(foreach DIR, $(SUBDIRS), $(DIR)_install)
# Create the romfs directory

View File

@ -77,5 +77,6 @@ clean:
$(call CLEAN)
install:
$(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -175,7 +175,8 @@ clean:
$(call DELFILE, *.r2)
$(call CLEAN)
install: $(ALL_BIN)
install:
$(ALL_BIN)
$(Q) install -D $(BIN1) $(ROMFS_DIR)/$(BIN1)
$(Q) install -D $(BIN2) $(ROMFS_DIR)/$(BIN2)
$(Q) install -D $(BIN3) $(ROMFS_DIR)/$(BIN3)

View File

@ -77,5 +77,6 @@ clean:
$(call CLEAN)
install:
$(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -77,5 +77,6 @@ clean:
$(call CLEAN)
install:
$(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -77,5 +77,6 @@ clean:
$(call CLEAN)
install:
$(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -78,5 +78,6 @@ clean:
$(call CLEAN)
install:
$(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -77,5 +77,6 @@ clean:
$(call CLEAN)
install:
$(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -79,5 +79,6 @@ clean:
$(call CLEAN)
install:
$(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -77,6 +77,7 @@ clean:
$(call CLEAN)
install:
$(Q) install -D $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -91,8 +91,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -136,8 +136,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -85,6 +85,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -85,6 +85,8 @@ build:
@$(MAKE) -C filesystem TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" CROSSDEV=$(CROSSDEV)
@$(MAKE) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" build_lib
install:
context:
# We can't make dependencies in this directory because the required

View File

@ -56,5 +56,6 @@ clean:
$(call CLEAN)
install:
$(Q) mkdir -p $(ROMFS_DIR)
$(Q) install $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -56,5 +56,6 @@ clean:
$(call CLEAN)
install:
$(Q) mkdir -p $(ROMFS_DIR)
$(Q) install -m 0755 $(BIN) $(ROMFS_DIR)/$(BIN)

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -85,8 +85,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -93,6 +93,8 @@ romfs_testdir.h : testdir.img
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -90,8 +90,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -90,8 +90,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -92,8 +92,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -88,8 +88,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -80,6 +80,8 @@ headers:
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -62,7 +62,8 @@ build: $(foreach DIR, $(SUBDIRS), $(DIR)_build)
# Install each program in the romfs directory
install: $(foreach DIR, $(SUBDIRS), $(DIR)_install)
install:
$(foreach DIR, $(SUBDIRS), $(DIR)_install)
@( for file in $(INSTALL_FILES); do\
install -m 0644 -D $${file} $(ROMFS_DIR)/$${file}; \
done; )

View File

@ -77,5 +77,6 @@ clean:
$(call CLEAN)
install:
$(Q) install -m 0755 -D $(BIN) $(CGI_DIR)/$(BIN)

View File

@ -77,5 +77,6 @@ clean:
$(call CLEAN)
install:
$(Q) install -m 0755 -D $(BIN) $(CGI_DIR)/$(BIN)

View File

@ -77,5 +77,6 @@ clean:
$(call CLEAN)
install:
$(Q) install -m 0755 -D $(BIN) $(CGI_DIR)/$(BIN)

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -107,6 +107,8 @@ $(HOST_BIN): $(HOST_OBJS)
.built: $(TARG_BIN) $(HOST_BIN)
@touch .built
install:
context:
.depend: Makefile $(TARG_SRCS)

View File

@ -76,6 +76,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -80,6 +80,8 @@ $(COBJS): %$(OBJEXT): %.c
httpd_fsdata.c: httpd-fs/*
$(TOPDIR)/tools/mkfsdata.pl
install:
context:
.depend: Makefile $(SRCS)

View File

@ -77,6 +77,8 @@ $(COBJS): %$(OBJEXT): %.c
$(call ARCHIVE, $(BIN), $(OBJS))
@touch .built
install:
context:
.depend: Makefile $(SRCS)

View File

@ -87,8 +87,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -88,8 +88,12 @@ ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
install:
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
install:
context:
endif

View File

@ -58,6 +58,8 @@ $(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),distclean)))
nothing:
install:
context: # $(foreach SDIR, $(CNTXTDIRS), $(SDIR)_context)
depend: $(foreach SDIR, $(SUBDIRS), $(SDIR)_depend)

Some files were not shown because too many files have changed in this diff Show More