Skip to content

Commit 2134eb8

Browse files
committed
Enhanced build scripts: .cbplugin file is now generated automatically
1 parent 60242b1 commit 2134eb8

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

Makefile.am

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# ---------- Declarations ---------- #
22

33
cb_plugin_lib_LTLIBRARIES = GitBlocks.la
4-
cb_plugin_data_DATA = GitBlocks.zip
5-
CLEANFILES = GitBlocks.zip
4+
cb_plugin_data_DATA = GitBlocks.zip GitBlocks.cbplugin
5+
CLEANFILES = GitBlocks.zip GitBlocks.cbplugin
66

77

88
# ---------- GitBlocks.so ---------- #
@@ -32,4 +32,14 @@ GitBlocks_la_LDFLAGS = -shared -module -avoid-version -no-undefined $(WX_LIBS) $
3232
GitBlocks_zip_RESOURCES = manifest.xml
3333

3434
GitBlocks.zip: $(GitBlocks_zip_RESOURCES)
35-
PWD=`pwd` cd $(srcdir) && zip -R $(PWD)/GitBlocks.zip manifest.xml
35+
cd $(srcdir)
36+
zip -j9 GitBlocks.zip manifest.xml
37+
38+
# ---------- GitBlocks.cbplugin ---------- #
39+
40+
GitBlocks_cbplugin_RESOURCES = $(cb_plugin_lib_LTLIBRARIES) GitBlocks.zip
41+
42+
GitBlocks.cbplugin: $(GitBlocks_cbplugin_RESOURCES)
43+
cd $(srcdir)
44+
zip -j9 GitBlocks.cbplugin .libs/GitBlocks.so GitBlocks.zip
45+

0 commit comments

Comments
 (0)