From 7e536a8f7b6fda49d1b409c52869ee4771538d34 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 6 May 2018 12:47:10 +0100 Subject: [PATCH] Makefile.in: Copy over the ODT Help Browser on install --- source/Makefile.in | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/source/Makefile.in b/source/Makefile.in index 18dbc37..e5c6960 100644 --- a/source/Makefile.in +++ b/source/Makefile.in @@ -3,6 +3,7 @@ STRIP=strip CPPFLAGS=`xml2-config --cflags` `wx-config --cxxflags` -std=c++11 @DBGOUT@ CPPLIBS=`wx-config --libs` `curl-config --libs` -lsfml-audio -lxml2 MAKE=make +MKDIR=mkdir @DBGSTATUS@ XAB_OUT=xestiaab @@ -88,7 +89,7 @@ default: xestiaab: actmgrobjs formobjs widgetobjs commonobjs vcardobjs \ connobjs carddav2objs ceobjs cdoobjs mainobjs \ - searchobjs imexobjs + searchobjs imexobjs $(CPP) $(CPPFLAGS) $(ACTMGROBJS) $(FORMOBJS) $(WIDGETOBJS) \ $(COMMONOBJS) $(VCARDOBJS) $(CEOBJS) $(CDOOBJS) \ $(SEARCHOBJS) $(MAINOBJS) $(IMEXOBJS) $(CONNOBJS) $(CARDDAV2OBJS) \ @@ -109,7 +110,7 @@ commonobjs: $(COMMONOBJS) vcardobjs: $(VCARDOBJS) -ceobjs: $(CEOBJS) +ceobjs: $(CEOBJS) cdoobjs: $(CDOOBJS) @@ -148,11 +149,19 @@ odthelpbrowserobjs: $(ODTHELPBROWSEROBJS) odthelpbrowser: odthelpbrowserobjs $(CPP) $(CPPFLAGS) $(ODTHELPBROWSEROBJS) -o $(ODTHELPBROWSER) $(CPPLIBS) -install: +install-docs: + #TODO: Add @PREFIX@ for docs, xestiaab and man page + $(MKDIR) @DATAROOTDIR@/doc/xestiaab/ + cp "../docs/Documentation (en-GB).fodt" @DATAROOTDIR@/doc/xestiaab/en_GB.fodt + +install: install-docs cp $(XAB_OUT) @BINDIR@/$(XAB_OUT) cp xestiaab.1 @DATAROOTDIR@/man/man1/xestiaab.1 -uninstall: +uninstall-docs: + rm -rf @DATAROOTDIR@/doc/xestiaab + +uninstall: uninstall-docs rm @BINDIR@/$(XAB_OUT) rm @DATAROOTDIR@/man/man1/xestiaab.1 -- 2.39.5