From c1e017dd5dfa868d9732b52647909808bec0eb38 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Wed, 7 Dec 2016 14:50:22 -0200 Subject: [PATCH] Criando pacote linux. --- Makefile.in | 11 +++++++++++ pw3270-sharp.spec | 1 + src/native/Makefile.in | 8 ++++++++ src/pw3270-sharp/Makefile.in | 3 +++ 4 files changed, 23 insertions(+), 0 deletions(-) diff --git a/Makefile.in b/Makefile.in index 418119a..062ed7c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -89,12 +89,23 @@ $(BINRLS)/%.exe: \ @gzip -9 --stdout $< > $@ @chmod 0644 $@ +install-%: \ + src/%/Makefile \ + all + + @make -C `dirname $<` DESTDIR=$(DESTDIR) install + #---[ Targets ]-------------------------------------------------------------------------- all: \ $(BINRLS)/$(GLUELIB) \ $(BINRLS)/$(LIBNAME) +install: \ + install-native \ + install-pw3270-sharp + + Release: \ $(BINRLS)/$(GLUELIB) \ $(BINRLS)/$(LIBNAME) diff --git a/pw3270-sharp.spec b/pw3270-sharp.spec index 48f4890..56bc142 100644 --- a/pw3270-sharp.spec +++ b/pw3270-sharp.spec @@ -53,6 +53,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) +%{_libdir}/lib3270-mono.* %changelog diff --git a/src/native/Makefile.in b/src/native/Makefile.in index 78762db..635b71f 100644 --- a/src/native/Makefile.in +++ b/src/native/Makefile.in @@ -102,6 +102,14 @@ all: \ Release: \ $(BINRLS)/$(LIBNAME) +install: \ + $(BINRLS)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@.@PACKAGE_MINOR_VERSION@ + + @$(MKDIR) $(DESTDIR)/$(libdir) + @$(INSTALL_PROGRAM) $(BINRLS)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@.@PACKAGE_MINOR_VERSION@ $(DESTDIR)/$(libdir) + @$(LN_S) $(LIBNAME).@PACKAGE_MAJOR_VERSION@.@PACKAGE_MINOR_VERSION@ $(DESTDIR)/$(libdir)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@ + @$(LN_S) $(LIBNAME).@PACKAGE_MAJOR_VERSION@ $(DESTDIR)/$(libdir)/$(LIBNAME) + $(BINRLS)/$(LIBNAME): \ $(BINRLS)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@ diff --git a/src/pw3270-sharp/Makefile.in b/src/pw3270-sharp/Makefile.in index d008b20..9435917 100644 --- a/src/pw3270-sharp/Makefile.in +++ b/src/pw3270-sharp/Makefile.in @@ -67,6 +67,9 @@ all: \ Release: \ $(BINRLS)/$(LIBNAME) +install: \ + $(BINRLS)/$(LIBNAME) + Debug: \ $(BINDBG)/$(LIBNAME) -- libgit2 0.21.2