commit a1de6a3cbf9b6ccd926f5dac51570d5e25f6836c
Author: Elan Ruusamäe <[email protected]>
Date:   Thu Apr 14 23:32:53 2016 +0300

    run test

 Makefile       | 1 +
 crossguid.spec | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/crossguid.spec b/crossguid.spec
index 081556a..680f378 100644
--- a/crossguid.spec
+++ b/crossguid.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without tests           # build without tests
+
 %define rel 1
 %define short_commit 8f399e8
 %define commit_date 20150803
@@ -42,7 +46,7 @@ cp -p %{SOURCE1} Makefile
        CXXFLAGS="%{rpmcxxflags}"
 
 %if %{with tests}
-%{__make} \
+%{__make} test \
        CXX="%{__cxx}" \
        LDFLAGS="%{rpmldflags}" \
        CXXFLAGS="%{rpmcxxflags}"
diff --git a/Makefile b/Makefile
index fd0432e..bf6f2fc 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,7 @@ $(LIB): guid.o
        $(CXX) $(LIBS) $(LDFLAGS) -shared -Wl,-soname,lib$(NAME).so.$(MAJOR) $^ 
-o $@
 
 test: $(OBJ)
+       $(CXX) $(LIBS) $(LDFLAGS) $^ -o $@
 
 install: guid.h $(LIB)
        install -dm 0755 $(DESTDIR)$(INCLUDEDIR)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/crossguid.git/commitdiff/a1de6a3cbf9b6ccd926f5dac51570d5e25f6836c

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to