summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-07-24 08:31:19 +0200
committerWilliam Wilgus <me.theuser@yahoo.com>2018-07-24 08:31:19 +0200
commit1b68aea444e23471b57f506211a55564aeace40a (patch)
tree7ef7feeacbb4137ff97711584a892d4a4df7f649
parent1482a31134d411996298d5c0c8db8aa9a029c3b1 (diff)
downloadrockbox-1b68aea.tar.gz
rockbox-1b68aea.tar.bz2
rockbox-1b68aea.zip
Try #4 for lua make
Last commit was just a test to see if it work this one cleans it up a bit and should be a bit faster Change-Id: Ifdff5c5b78bcc6889506de607193246beccdde6b
-rw-r--r--apps/plugins/lua/lua.make7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/lua/lua.make b/apps/plugins/lua/lua.make
index eced2ae42d..58b3b69831 100644
--- a/apps/plugins/lua/lua.make
+++ b/apps/plugins/lua/lua.make
@@ -49,8 +49,8 @@ $(LUA_BUILDDIR)/rocklib_aux.c: $(APPSDIR)/plugin.h $(LUA_OBJ) $(LUA_SRCDIR)/rock
$(LUA_BUILDDIR)/rocklib_aux.o: $(LUA_BUILDDIR)/rocklib_aux.c
$(call PRINTS,CC $(<F))$(CC) $(INCLUDES) $(PLUGINFLAGS) -I $(LUA_SRCDIR) -c $< -o $@
-$(LUA_BUILDDIR)/%.lua: $(LUA_INCLUDEDIR)/%.lua
- $(call PRINTS,CP $(subst $(LUA_INCLUDEDIR)/,,$<))mkdir -p $(LUA_BUILDDIR)/ && cp $< $@
+$(LUA_BUILDDIR)/%.lua: $(LUA_INCLUDEDIR)/%.lua | $(LUA_BUILDDIR)
+ $(call PRINTS,CP $(subst $(LUA_INCLUDEDIR)/,,$<))cp $< $@
$(LUA_BUILDDIR)/lua.refmap: $(LUA_OBJ) $(TLSFLIB)
@@ -65,3 +65,6 @@ $(LUA_BUILDDIR)/lua.ovl: $(LUA_OBJ) $(TLSFLIB) $(LUA_OUTLDS)
-lgcc $(LUA_OVLFLAGS)
$(call PRINTS,LD $(@F))$(call objcopy,$(basename $@).elf,$@)
+$(LUA_BUILDDIR):
+ $(call PRINTS,MKDIR $@)mkdir -p $(LUA_BUILDDIR)/
+