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 prefix=/usr
7 7 exec_prefix=@exec_prefix@
8 8 libdir=@libdir@
  9 +instdir=$(DESTDIR)/$(libdir)/libreoffice/share/extensions/$(PACKAGE)
9 10  
10 11 #---[ Paths ]------------------------------------------------------------------------------------------
11 12 ROOTDIR ?= .
... ... @@ -21,6 +22,9 @@ OBJRLS = $(OBJDIR)/Release
21 22  
22 23 #---[ Tools ]------------------------------------------------------------------------------------------
23 24 MKDIR=@MKDIR_P@
  25 +INSTALL=@INSTALL@
  26 +INSTALL_DATA=@INSTALL_DATA@
  27 +INSTALL_PROGRAM=@INSTALL_PROGRAM@
24 28 CXX=@CXX@
25 29 CONVERT=@CONVERT@
26 30 ZIP=@ZIP@
... ... @@ -92,6 +96,19 @@ $(OBJRLS)/%.o: %.cxx $(OBJDIR)/uno/include/br/com/bb/$(PACKAGE).hpp Makefile
92 96  
93 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 112 $(BINDIR)/$(PACKAGE).oxt: $(BINRLS)/$(PACKAGE).uno@DLLEXT@ $(PACKAGE).uno.rdb description.xml manifest.xml description.txt
96 113 @rm -f $@
97 114  
... ... @@ -116,6 +133,9 @@ $(BINRLS)/$(PACKAGE).uno@DLLEXT@: $(foreach SRC, $(basename $(SOURCES)), $(OBJRL
116 133 @$(MKDIR) `dirname $@`
117 134 @$(CXX) $(DLL_FLAGS) $(LDFLAGS) -o $@ $^
118 135  
  136 +$(PACKAGE).png: ../pw3270/pixmaps/pw3270.svg
  137 + @$(CONVERT) $^ --format=png > $@
  138 +
119 139 #---[ Debug Targets ]----------------------------------------------------------------------------------
120 140  
121 141 Debug: $(BINDBG)/testprogram
... ... @@ -145,6 +165,7 @@ cleanDebug: clean
145 165 clean:
146 166 @rm -f *.urd
147 167 @rm -f *.uno.rdb
  168 + @rm -f $(PACKAGE).png
148 169 @rm -fr $(OBJDIR)
149 170 @rm -fr $(BINDIR)
150 171  
... ...