Commit deca6d6765d7f81e6b777624ed37debecf72d6f9

Authored by perry.werneck@gmail.com
1 parent 90433d75

Ajustando makefile para instalar a extensão libreoffice

Showing 1 changed file with 21 additions and 0 deletions   Show diff stats
src/oxt/Makefile.in
@@ -6,6 +6,7 @@ SOURCES=main.cxx local.cxx connection.cxx get.cxx set.cxx actions.cxx @@ -6,6 +6,7 @@ SOURCES=main.cxx local.cxx connection.cxx get.cxx set.cxx actions.cxx
6 prefix=/usr 6 prefix=/usr
7 exec_prefix=@exec_prefix@ 7 exec_prefix=@exec_prefix@
8 libdir=@libdir@ 8 libdir=@libdir@
  9 +instdir=$(DESTDIR)/$(libdir)/libreoffice/share/extensions/$(PACKAGE)
9 10
10 #---[ Paths ]------------------------------------------------------------------------------------------ 11 #---[ Paths ]------------------------------------------------------------------------------------------
11 ROOTDIR ?= . 12 ROOTDIR ?= .
@@ -21,6 +22,9 @@ OBJRLS = $(OBJDIR)/Release @@ -21,6 +22,9 @@ OBJRLS = $(OBJDIR)/Release
21 22
22 #---[ Tools ]------------------------------------------------------------------------------------------ 23 #---[ Tools ]------------------------------------------------------------------------------------------
23 MKDIR=@MKDIR_P@ 24 MKDIR=@MKDIR_P@
  25 +INSTALL=@INSTALL@
  26 +INSTALL_DATA=@INSTALL_DATA@
  27 +INSTALL_PROGRAM=@INSTALL_PROGRAM@
24 CXX=@CXX@ 28 CXX=@CXX@
25 CONVERT=@CONVERT@ 29 CONVERT=@CONVERT@
26 ZIP=@ZIP@ 30 ZIP=@ZIP@
@@ -92,6 +96,19 @@ $(OBJRLS)/%.o: %.cxx $(OBJDIR)/uno/include/br/com/bb/$(PACKAGE).hpp Makefile @@ -92,6 +96,19 @@ $(OBJRLS)/%.o: %.cxx $(OBJDIR)/uno/include/br/com/bb/$(PACKAGE).hpp Makefile
92 96
93 Release: $(BINDIR)/$(PACKAGE).oxt 97 Release: $(BINDIR)/$(PACKAGE).oxt
94 98
  99 +install: $(BINRLS)/$(PACKAGE).uno@DLLEXT@ $(PACKAGE).uno.rdb description.xml manifest.xml description.txt $(PACKAGE).png
  100 + @$(MKDIR) $(instdir)
  101 + @$(MKDIR) $(instdir)/META-INF
  102 + @$(INSTALL_DATA) manifest.xml $(instdir)/META-INF
  103 +
  104 + @$(INSTALL_DATA) description.xml $(instdir)
  105 + @$(INSTALL_DATA) description.txt $(instdir)
  106 +
  107 + @$(INSTALL_DATA) $(PACKAGE).png $(instdir)/$(PACKAGE).png
  108 +
  109 + @$(INSTALL_PROGRAM) $(BINRLS)/$(PACKAGE).uno@DLLEXT@ $(instdir)
  110 + @$(INSTALL_DATA) $(PACKAGE).uno.rdb $(instdir)
  111 +
95 $(BINDIR)/$(PACKAGE).oxt: $(BINRLS)/$(PACKAGE).uno@DLLEXT@ $(PACKAGE).uno.rdb description.xml manifest.xml description.txt 112 $(BINDIR)/$(PACKAGE).oxt: $(BINRLS)/$(PACKAGE).uno@DLLEXT@ $(PACKAGE).uno.rdb description.xml manifest.xml description.txt
96 @rm -f $@ 113 @rm -f $@
97 114
@@ -116,6 +133,9 @@ $(BINRLS)/$(PACKAGE).uno@DLLEXT@: $(foreach SRC, $(basename $(SOURCES)), $(OBJRL @@ -116,6 +133,9 @@ $(BINRLS)/$(PACKAGE).uno@DLLEXT@: $(foreach SRC, $(basename $(SOURCES)), $(OBJRL
116 @$(MKDIR) `dirname $@` 133 @$(MKDIR) `dirname $@`
117 @$(CXX) $(DLL_FLAGS) $(LDFLAGS) -o $@ $^ 134 @$(CXX) $(DLL_FLAGS) $(LDFLAGS) -o $@ $^
118 135
  136 +$(PACKAGE).png: ../pw3270/pixmaps/pw3270.svg
  137 + @$(CONVERT) $^ --format=png > $@
  138 +
119 #---[ Debug Targets ]---------------------------------------------------------------------------------- 139 #---[ Debug Targets ]----------------------------------------------------------------------------------
120 140
121 Debug: $(BINDBG)/testprogram 141 Debug: $(BINDBG)/testprogram
@@ -145,6 +165,7 @@ cleanDebug: clean @@ -145,6 +165,7 @@ cleanDebug: clean
145 clean: 165 clean:
146 @rm -f *.urd 166 @rm -f *.urd
147 @rm -f *.uno.rdb 167 @rm -f *.uno.rdb
  168 + @rm -f $(PACKAGE).png
148 @rm -fr $(OBJDIR) 169 @rm -fr $(OBJDIR)
149 @rm -fr $(BINDIR) 170 @rm -fr $(BINDIR)
150 171