From 3bb2ffc5eeb239bea0ab23262d7fb708185e1730 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Sat, 26 Jul 2008 22:53:13 +0000 Subject: [PATCH] Simple install target for default settings. Could be made more configurable via the config file (also updating the search path used in gtk_gui.c) later. svn path=/trunk/netsurf/; revision=4765 --- Makefile | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 04c8eab64..d71be058d 100644 --- a/Makefile +++ b/Makefile @@ -95,7 +95,6 @@ TOUCH=touch ifeq ($(TARGET),riscos) ifeq ($(HOST),riscos) # Build for RO on RO -GCCSDK_INSTALL_ENV := CC := gcc EXEEXT := PKG_CONFIG := @@ -476,9 +475,27 @@ $(eval $(foreach SOURCE,$(filter %.cpp,$(SOURCES)), \ $(eval $(foreach SOURCE,$(filter %.s,$(SOURCES)), \ $(call compile_target_s,$(SOURCE),$(subst /,_,$(SOURCE:.s=.o)),$(subst /,_,$(SOURCE:.s=.d))))) -.PHONY: all clean docs +.PHONY: all clean docs install install-gtk clean: $(CLEANS) +install-gtk: + mkdir -p $(DESTDIR)/usr/share/netsurf + mkdir -p $(DESTDIR)/usr/bin + @cp -v nsgtk $(DESTDIR)/usr/bin + @cp -vrL gtk/res/adblock.css $(DESTDIR)/usr/share/netsurf + @cp -vrL gtk/res/ca-bundle.txt $(DESTDIR)/usr/share/netsurf + @cp -vrL gtk/res/default.css $(DESTDIR)/usr/share/netsurf + @cp -vrL gtk/res/gtkdefault.css $(DESTDIR)/usr/share/netsurf + @cp -vrL gtk/res/license $(DESTDIR)/usr/share/netsurf + @cp -vrL gtk/res/netsurf.xpm $(DESTDIR)/usr/share/netsurf + @cp -vrL gtk/res/throbber $(DESTDIR)/usr/share/netsurf + gzip -9v < gtk/res/messages > $(DESTDIR)/usr/share/netsurf/messages + gzip -9v < gtk/res/downloads.glade > $(DESTDIR)/usr/share/netsurf/downloads.glade + gzip -9v < gtk/res/netsurf.glade > $(DESTDIR)/usr/share/netsurf/netsurf.glade + gzip -9v < gtk/res/options.glade > $(DESTDIR)/usr/share/netsurf/options.glade + +install: all-program install-$(TARGET) + docs: doxygen Docs/Doxyfile