Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
lurch
Commits
75ab21fb
Commit
75ab21fb
authored
Apr 21, 2018
by
Richard Bayerle
Browse files
Add Makefile target for source tarball generation.
This closes #40.
parent
68d1effe
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
75ab21fb
build/
tarball/
Makefile
View file @
75ab21fb
...
...
@@ -64,6 +64,9 @@ BDIR=./build
SDIR
=
./src
HDIR
=
./headers
TARBALL_DIR_NAME
=
tarball
TARBALL_FILE_NAME
=
lurch-0.0.0-src.tar.gz
LOMEMO_DIR
=
$(LDIR)
/libomemo
LOMEMO_SRC
=
$(LOMEMO_DIR)
/src
LOMEMO_BUILD
=
$(LOMEMO_DIR)
/build
...
...
@@ -120,12 +123,21 @@ install-home: $(BDIR)/lurch.so
$(INSTALL_DIR)
"
$(PURPLE_HOME_PLUGIN_DIR)
"
$(INSTALL_LIB)
"
$(BDIR)
/lurch.so"
"
$(PURPLE_HOME_PLUGIN_DIR)
/lurch.so"
tarball
:
clean-all
$(MAKE)
-C
"
$(AXC_DIR)
"
clean-all
$(MKDIR)
tarball
-
cp
-r
.
tarball/
#rsync -av --progress . tarball/ --exclude tarball/
-
find tarball/
-name
"*.git*"
-exec
rm
-rf
"{}"
\;
cd
$(TARBALL_DIR_NAME)
/
&&
tar
czf ../
$(TARBALL_FILE_NAME)
*
--exclude
$(TARBALL_DIR_NAME)
&&
cd
..
&&
mv
$(TARBALL_FILE_NAME)
$(TARBALL_DIR_NAME)
/
clean
:
$(RM_RF)
"
$(BDIR)
"
$(RM_RF)
"./
$(TARBALL_DIR_NAME)
"
clean-all
:
clean
$(MAKE)
-C
"
$(LOMEMO_DIR)
"
clean
$(MAKE)
-C
"
$(AXC_DIR)
"
clean
.PHONY
:
clean clean-all install install-home
.PHONY
:
clean clean-all install install-home
tarball
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment