mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 12:12:35 +03:00
fix gtk install target to provide language fallback
This commit is contained in:
parent
20f99a8e96
commit
e5d2cba11f
@ -126,28 +126,31 @@ EXETARGET := nsgtk
|
||||
# Install target
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
GTK_RESOURCES_LIST := adblock.css arrow_down_8x32.png ca-bundle.txt default.css \
|
||||
default.ico favicon.png gtkdefault.css internal.css \
|
||||
languages license netsurf.png netsurf.xpm \
|
||||
netsurf-16x16.xpm quirks.css themelist toolbarIndices \
|
||||
SearchEngines
|
||||
GTK_RESOURCES_LIST := $(addprefix gtk/res/, $(GTK_RESOURCES_LIST)) \
|
||||
$(wildcard gtk/res/*.gtk*.ui)
|
||||
GTK_RESOURCES_LIST := \
|
||||
languages themelist SearchEngines toolbarIndices ca-bundle.txt \
|
||||
default.css adblock.css quirks.css internal.css gtkdefault.css \
|
||||
credits.html licence.html welcome.html Messages \
|
||||
default.ico favicon.png netsurf.png netsurf.xpm netsurf-16x16.xpm \
|
||||
arrow_down_8x32.png
|
||||
|
||||
GTK_RESOURCES_LIST := \
|
||||
$(addprefix gtk/res/, $(GTK_RESOURCES_LIST)) \
|
||||
$(wildcard gtk/res/*.gtk$(NETSURF_GTK_MAJOR).ui)
|
||||
|
||||
# translations with more than just Messages files
|
||||
GTK_TRANSLATIONS_HTML := de en fr it ja nl
|
||||
|
||||
install-gtk:
|
||||
$(Q)mkdir -p $(DESTDIR)$(NETSURF_GTK_RESOURCES)throbber
|
||||
$(Q)mkdir -p $(DESTDIR)$(NETSURF_GTK_RESOURCES)icons
|
||||
$(Q)mkdir -p $(DESTDIR)$(NETSURF_GTK_BIN)
|
||||
$(Q)install nsgtk $(DESTDIR)$(NETSURF_GTK_BIN)netsurf
|
||||
$(Q)install -m 0644 $(GTK_RESOURCES_LIST) $(DESTDIR)$(NETSURF_GTK_RESOURCES)
|
||||
$(Q)mkdir -p $(DESTDIR)$(NETSURF_GTK_RESOURCES)icons
|
||||
$(Q)install -m 0644 gtk/res/icons/*.png $(DESTDIR)$(NETSURF_GTK_RESOURCES)/icons
|
||||
$(Q)mkdir -p $(DESTDIR)$(NETSURF_GTK_RESOURCES)throbber
|
||||
$(Q)install -m 0644 gtk/res/throbber/*.png $(DESTDIR)$(NETSURF_GTK_RESOURCES)/throbber
|
||||
$(Q)tar -c -h -C gtk/res -f - themes | tar -xv -C $(DESTDIR)$(NETSURF_GTK_RESOURCES) -f -
|
||||
$(Q)tar -c -h -C gtk/res -f - C $(GTK_TRANSLATIONS_HTML) | tar -xv -C $(DESTDIR)$(NETSURF_GTK_RESOURCES) -f -
|
||||
$(Q)tar -c -h -C gtk/res -f - $(GTK_TRANSLATIONS_HTML) | tar -xv -C $(DESTDIR)$(NETSURF_GTK_RESOURCES) -f -
|
||||
$(call split_install_messages, gtk, $(DESTDIR)$(NETSURF_GTK_RESOURCES))
|
||||
$(Q)install -m 0644 $(GTK_RESOURCES_LIST) $(DESTDIR)$(NETSURF_GTK_RESOURCES)
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Package target
|
||||
|
@ -1 +0,0 @@
|
||||
../../../!NetSurf/Resources/en/Messages
|
@ -1 +0,0 @@
|
||||
../../../!NetSurf/Resources/en/credits.html,faf
|
@ -1 +0,0 @@
|
||||
../../../!NetSurf/Resources/en/licence.html,faf
|
@ -1 +0,0 @@
|
||||
../../../!NetSurf/Resources/en/welcome.html,faf
|
1
gtk/res/Messages
Symbolic link
1
gtk/res/Messages
Symbolic link
@ -0,0 +1 @@
|
||||
en/Messages
|
1
gtk/res/credits.html
Symbolic link
1
gtk/res/credits.html
Symbolic link
@ -0,0 +1 @@
|
||||
en/credits.html
|
1
gtk/res/licence.html
Symbolic link
1
gtk/res/licence.html
Symbolic link
@ -0,0 +1 @@
|
||||
en/licence.html
|
1
gtk/res/welcome.html
Symbolic link
1
gtk/res/welcome.html
Symbolic link
@ -0,0 +1 @@
|
||||
en/welcome.html
|
Loading…
Reference in New Issue
Block a user