emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/sqlite3 1f1f7ab2db 09/62: added package creation section


From: ELPA Syncer
Subject: [nongnu] elpa/sqlite3 1f1f7ab2db 09/62: added package creation section
Date: Tue, 14 Mar 2023 11:01:44 -0400 (EDT)

branch: elpa/sqlite3
commit 1f1f7ab2db29281aef8a0d17fc17483cb2ababf8
Author: Y. N. Lo <gordonynlo@yahoo.com>
Commit: Y. N. Lo <gordonynlo@yahoo.com>

    added package creation section
---
 MODULE                       |   1 +
 Makefile                     |  14 +++++++++++---
 sqlite3-api-module-0.0.1.tar | Bin 0 -> 34816 bytes
 sqlite3-api-module-pkg.el    |   1 +
 4 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/MODULE b/MODULE
new file mode 100644
index 0000000000..8ad12853a9
--- /dev/null
+++ b/MODULE
@@ -0,0 +1 @@
+sqlite3-api-module-0.0.1.tar
diff --git a/Makefile b/Makefile
index 645be9cbf0..d82800ab5e 100644
--- a/Makefile
+++ b/Makefile
@@ -2,16 +2,24 @@ CC = gcc
 CFLAGS = -g3 -Wall -std=c99
 EMACS252=$(HOME)/test-emacs/bin/emacs
 EMACS251=$(HOME)/test-emacs-251/bin/emacs
-MODULE=sqlite3-api-module.so
+MODULE=sqlite3-api-module
+MODULE_VERSION=0.0.1
 
-all: $(MODULE)
+all: $(MODULE).so
 
 clean:
-       rm -f *.so *.o
+       rm -f *.so *.o *.tar $(MODULE)-pkg.el MODULE
 
 consts:
        (cd tools; ./run.sh)
 
+# File "MODULE" is read by (sqlite3-api-install-dynamic-module)
+# during installation
+package: $(MODULE).so
+       echo $(MODULE)-$(MODULE_VERSION).tar > MODULE
+       echo "(define-package \"$(MODULE)\" \"$(MODULE_VERSION)\" \"SQLite3 API 
dynamic module\")" > $(MODULE)-pkg.el
+       tar cvf $(MODULE)-$(MODULE_VERSION).tar $(MODULE)-pkg.el $(MODULE).so
+
 %.so: %.o
        $(CC) -shared -o $@ $< -lsqlite3
 
diff --git a/sqlite3-api-module-0.0.1.tar b/sqlite3-api-module-0.0.1.tar
new file mode 100644
index 0000000000..ebb362b250
Binary files /dev/null and b/sqlite3-api-module-0.0.1.tar differ
diff --git a/sqlite3-api-module-pkg.el b/sqlite3-api-module-pkg.el
new file mode 100644
index 0000000000..a4a8cb4e5c
--- /dev/null
+++ b/sqlite3-api-module-pkg.el
@@ -0,0 +1 @@
+(define-package "sqlite3-api-module" "0.0.1" "SQLite3 API dynamic module")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]