fix riscos makefile tempfile creation

This commit is contained in:
Vincent Sanders 2012-08-19 13:05:35 +01:00
parent 57d2e31e59
commit 4985b56b68

View File

@ -105,12 +105,10 @@ CLEANS += clean-run
# Install target
# ----------------------------------------------------------------------------
install-riscos: netsurf.zip
netsurf.zip: $(EXETARGET)
TMPDIR:=$(shell mktemp -d)
$(eval $@_TMPDIR := $(shell mktemp -d))
$(Q) $(RM) $@
rsync --archive --verbose $(CURDIR)/!NetSurf $(TMPDIR)
mv $(TMPDIR)/!NetSurf/ReadMe $(TMPDIR)
$(shell cd $(TMPDIR) && /opt/netsurf/arm-unknown-riscos/env/bin/zip -9vr, $(CURDIR)/$@ *)
$(Q) $(RM) $(TMPDIR)
rsync --archive --verbose $(CURDIR)/!NetSurf $($@_TMPDIR)
mv $($@_TMPDIR)/!NetSurf/ReadMe $($@_TMPDIR)
$(shell cd $($@_TMPDIR) && /opt/netsurf/arm-unknown-riscos/env/bin/zip -9vr, $(CURDIR)/$@ *)
$(Q) $(RM) $($@_TMPDIR)