Update framebuffer paths to use PREFIX, add install-framebuffer target

svn path=/trunk/netsurf/; revision=7222
This commit is contained in:
Daniel Silverstone 2009-04-21 22:56:38 +00:00
parent 89f0a452f2
commit 316c1cbfbe
2 changed files with 13 additions and 4 deletions

View File

@ -821,6 +821,12 @@ install-beos: NetSurf
gzip -9v < beos/res/messages > $(DESTDIR)$(NETSURF_BEOS_RESOURCES)messages
install-framebuffer: $(EXETARGET)
mkdir -p $(DESTDIR)$(NETSURF_FRAMEBUFFER_BIN)
mkdir -p $(DESTDIR)$(NETSURF_FRAMEBUFFER_RESOURCES)
@cp -v $(EXETARGET) $(DESTDIR)/$(NETSURF_FRAMEBUFFER_BIN)netsurf$(SUBTARGET)
@for F in Aliases default.css messages; do cp -vL framebuffer/res/$$F $(DESTDIR)/$(NETSURF_FRAMEBUFFER_RESOURCES); done
install: all-program install-$(TARGET)
docs:

View File

@ -214,11 +214,14 @@ ifeq ($(TARGET),framebuffer)
# Framebuffer frontends may have differing root paths for resources
# As such, these specify the resource path and config path.
NETSURF_FB_RESPATH_linux := /usr/share/netsurf/
NETSURF_FB_RESPATH_linux := $(PREFIX)/share/netsurf/
NETSURF_FB_RESPATH_able := (tftpboot)/
NETSURF_FB_RESPATH_dummy := ./
NETSURF_FB_RESPATH_sdl := ./
NETSURF_FB_RESPATH_vnc := /usr/share/netsurf/
NETSURF_FB_RESPATH_sdl := $(PREFIX)/share/netsurf/
NETSURF_FB_RESPATH_vnc := $(PREFIX)/share/netsurf/
NETSURF_FRAMEBUFFER_RESOURCES = $(NETSURF_FB_RESPATH_$(NETSURF_FB_FRONTEND))
NETSURF_FRAMEBUFFER_BIN := $(PREFIX)/bin/
endif