summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2011-05-08 01:03:44 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2011-05-08 01:03:44 +0000
commit4ebb145a7d2d75139a6cab6863c0e3eb85a5282c (patch)
treea6c03bbf35b4ca528718a1efd1bafa3cfb460a9d /Makefile
parentf2e8be9fe75817a29eb7aeda08659944c0c69932 (diff)
downloadnetsurf-4ebb145a7d2d75139a6cab6863c0e3eb85a5282c.tar.gz
netsurf-4ebb145a7d2d75139a6cab6863c0e3eb85a5282c.tar.bz2
Automatically build an rdef file importing the resources listed as dependencies for BeOS.
svn path=/trunk/netsurf/; revision=12306
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 53e4e70a5..0fb5b043f 100644
--- a/Makefile
+++ b/Makefile
@@ -426,9 +426,14 @@ ifeq ($(TARGET),beos)
endif
ifeq ($(TARGET),beos)
-$(RSRC_BEOS): $(RDEF_BEOS) $(RDEP_BEOS)
+$(RDEF_IMP_BEOS): $(RDEP_BEOS)
+ echo $(RDEF_IMP_BEOS)
+ $(VQ)echo " GEN: $@"
+ $(Q)n=5000; for f in $^; do echo "resource($$n,\"$${f#beos/res/}\") #'data' import \"$${f#beos/}\";"; n=$$(($$n+1)); done > $@
+
+$(RSRC_BEOS): $(RDEF_BEOS) $(RDEF_IMP_BEOS)
$(VQ)echo " RC: $<"
- $(Q)$(BEOS_RC) -o $@ $<
+ $(Q)$(BEOS_RC) -I beos -o $@ $^
endif
ifeq ($(TARGET),riscos)