[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet-go-plugins] branch master updated (8eec0c3 -> 8b3211c)
From: |
gnunet |
Subject: |
[gnunet-go-plugins] branch master updated (8eec0c3 -> 8b3211c) |
Date: |
Mon, 31 Oct 2022 08:03:50 +0100 |
This is an automated email from the git hooks/post-receive script.
bernd-fix pushed a change to branch master
in repository gnunet-go-plugins.
from 8eec0c3 Initial revision of documentation.
new a535716 Makefile: added test target.
new 8b3211c git: ignore vscode settings.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.gitignore | 1 +
Makefile | 5 ++++-
example-c/Makefile | 7 +++++--
example-go/Makefile | 7 +++++--
4 files changed, 15 insertions(+), 5 deletions(-)
create mode 100644 .gitignore
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..dbe9c82
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.vscode/
\ No newline at end of file
diff --git a/Makefile b/Makefile
index 28cb5fe..7368b77 100644
--- a/Makefile
+++ b/Makefile
@@ -20,10 +20,13 @@
#
# SPDX-License-Identifier: AGPL3.0-or-later
-SUBDIRS = reclaimid
+SUBDIRS = example-c example-go
all:
@for i in $(SUBDIRS); do (cd $$i; $(MAKE) $(MFLAGS) $(MYMAKEFLAGS)
all); done
clean:
@for i in $(SUBDIRS); do (cd $$i; $(MAKE) $(MFLAGS) $(MYMAKEFLAGS)
clean); done
+
+test:
+ @for i in $(SUBDIRS); do (cd $$i; $(MAKE) $(MFLAGS) $(MYMAKEFLAGS)
test); done
diff --git a/example-c/Makefile b/example-c/Makefile
index d954b84..975c449 100644
--- a/example-c/Makefile
+++ b/example-c/Makefile
@@ -23,8 +23,11 @@
all: ${GOPATH}/bin/plugin_example_c.so
-clean: ${GOPATH}/bin/plugin_example_c.so
- rm -f $^
+clean:
+ rm -f ${GOPATH}/bin/plugin_example_c.so
+
+test:
+ go test -v ./...
${GOPATH}/bin/plugin_example_c.so: main.go gui.htpl plugin.h plugin.c
go build -buildmode=plugin -trimpath -gcflags="-N -l" -o $@ ./...
diff --git a/example-go/Makefile b/example-go/Makefile
index f4fa800..4c96c72 100644
--- a/example-go/Makefile
+++ b/example-go/Makefile
@@ -23,8 +23,11 @@
all: ${GOPATH}/bin/plugin_example_go.so
-clean: ${GOPATH}/bin/plugin_example_go.so
- rm -f $^
+clean:
+ rm -f ${GOPATH}/bin/plugin_example_go.so
+
+test:
+ go test -v ./...
${GOPATH}/bin/plugin_example_go.so: main.go gui.htpl
go build -buildmode=plugin -trimpath -gcflags="-N -l" -o $@ ./...
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet-go-plugins] branch master updated (8eec0c3 -> 8b3211c),
gnunet <=