pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sds: Build unit test binary only for rule "test"



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By:	micha
Date:		Wed Jul 14 14:24:07 2021 +0200
Changeset:	f187a9acb8eeb043b7bc785bd0dc840402b0e8d0

Modified Files:
	sds/distinfo
	sds/patches/patch-Makefile

Log Message:
sds: Build unit test binary only for rule "test"

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f187a9acb8eeb043b7bc785bd0dc840402b0e8d0

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 sds/distinfo               |  2 +-
 sds/patches/patch-Makefile | 31 ++++++++++++++++---------------
 2 files changed, 17 insertions(+), 16 deletions(-)

diffs:
diff --git a/sds/distinfo b/sds/distinfo
index de35acaba6..65f0e72312 100644
--- a/sds/distinfo
+++ b/sds/distinfo
@@ -1,3 +1,3 @@
 $NetBSD$
 
-SHA1 (patch-Makefile) = f98df3f692006a0ad09d93786d7f02d7bb377e40
+SHA1 (patch-Makefile) = cbc737f4bef8620fd828b9a3544452e8d7cf5be3
diff --git a/sds/patches/patch-Makefile b/sds/patches/patch-Makefile
index f466419050..edfe0eb25d 100644
--- a/sds/patches/patch-Makefile
+++ b/sds/patches/patch-Makefile
@@ -11,27 +11,28 @@ $NetBSD$
 +MAJOR=  2
 +MINOR=  0
 +PATCH=  0
-+
-+all: sds-test libsds.so
-+
-+sds.lo: sds.c sds.h
-+	libtool --tag=CC --mode=compile \
-+            $(CC) $(CPPFLAGS) $(CFLAGS) -c -fpic -Wall -std=c99 -pedantic -O2 sds.c
-+
-+libsds.so: sds.lo
-+	libtool --tag=CC --mode=link \
-+            $(CC) $(LDFLAGS) -shared -o libsds.la sds.lo \
-+            -rpath ${PREFIX}/lib \
-+            -version-number ${MAJOR}:${MINOR}:${PATCH}
  
- sds-test: sds.c sds.h testhelp.h
+-sds-test: sds.c sds.h testhelp.h
 -	$(CC) -o sds-test sds.c -Wall -std=c99 -pedantic -O2 -DSDS_TEST_MAIN
 -	@echo ">>> Type ./sds-test to run the sds.c unit tests."
-+	$(CC) $(CPPFLAGS) $(CFLAGS) -o sds-test sds.c -Wall -std=c99 -pedantic -O2 -DSDS_TEST_MAIN
++all: libsds.la
 +
-+test:
++test: sds-test
 +	./sds-test
  
  clean:
 -	rm -f sds-test
 +	rm -f sds-test sds.o libsds.so
++
++sds.lo: sds.c sds.h
++	libtool --tag=CC --mode=compile \
++            $(CC) $(CPPFLAGS) $(CFLAGS) -c -fpic -Wall -std=c99 -pedantic -O2 sds.c
++
++libsds.la: sds.lo
++	libtool --tag=CC --mode=link \
++            $(CC) $(LDFLAGS) -shared -o libsds.la sds.lo \
++            -version-number ${MAJOR}:${MINOR}:${PATCH} \
++            -rpath ${PREFIX}/lib
++
++sds-test: sds.c sds.h testhelp.h
++	$(CC) $(CPPFLAGS) $(CFLAGS) -o sds-test sds.c -Wall -std=c99 -pedantic -O2 -DSDS_TEST_MAIN


Home | Main Index | Thread Index | Old Index