diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2021-08-04 01:47:11 +0100 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2021-08-04 01:47:11 +0100 |
commit | 492607991c1874f70852fae70df56cc522e3a45d (patch) | |
tree | a43e56470bef89cc53466773aea19833783d40dc /Makefile | |
parent | 10cce859843f361f8c5b90ccdb6a14ded2c52c75 (diff) | |
download | ttf2f-492607991c1874f70852fae70df56cc522e3a45d.tar.gz ttf2f-492607991c1874f70852fae70df56cc522e3a45d.tar.bz2 |
Build RISC OS resources using ccres.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -1,6 +1,7 @@ # Component settings COMPONENT := ttf2f COMPONENT_VERSION := 0.0.5 +COMPONENT_DATE := 03 Aug 2021 # We produce an application binary COMPONENT_TYPE := binary @@ -64,10 +65,22 @@ $(realoutput): $(OUTPUT) DISTCLEAN_ITEMS := $(DISTCLEAN_ITEMS) ttf2f.zip .PHONY: riscos-dist -riscos-dist: $(realoutput) +riscos-dist: $(realoutput) $(BUILDDIR)/Res,fae $(Q)$(CP) $(CPFLAGS) $(realoutput) !TTF2f/!RunImage,ff8 + $(Q)$(CP) $(CPFLAGS) $(BUILDDIR)/Res,fae !TTF2f/Res,fae $(Q)$(dir $(CC))zip -9r, ttf2f.zip !TTF2f - $(Q)$(RM) $(RMFLAGS) !TTF2f/!RunImage,ff8 + $(Q)$(RM) $(RMFLAGS) !TTF2f/!RunImage,ff8 !TTF2f/Res,fae + + __empty := + __space := $(empty) $(empty) +$(BUILDDIR)/Res,fae: Res.txt + $(Q)echo " CCRES: $@" + $(Q)$(SED) \ + -e 's/__COPYRIGHT_END__/$(word $(words $(COMPONENT_DATE)),$(COMPONENT_DATE))/' \ + -e 's/__DATE__/$(subst $(__space),-,$(COMPONENT_DATE))/' \ + -e 's/__VERSION__/$(word 1,$(subst ., ,$(COMPONENT_VERSION))).$(subst $(__space),,$(wordlist 2,$(words $(subst ., ,$(COMPONENT_VERSION))),$(subst ., ,$(COMPONENT_VERSION))))/' \ + $^ >$(BUILDDIR)/Res.txt + $(Q)$(dir $(CC))ccres $(BUILDDIR)/Res.txt $@ endif all: $(PRE_TARGETS) $(OUTPUT) $(POST_TARGETS) |