Commit 75ab21fb authored by Richard Bayerle's avatar Richard Bayerle
Browse files

Add Makefile target for source tarball generation.

This closes #40.
parent 68d1effe
build/ build/
tarball/
...@@ -64,6 +64,9 @@ BDIR=./build ...@@ -64,6 +64,9 @@ BDIR=./build
SDIR=./src SDIR=./src
HDIR=./headers HDIR=./headers
TARBALL_DIR_NAME=tarball
TARBALL_FILE_NAME=lurch-0.0.0-src.tar.gz
LOMEMO_DIR=$(LDIR)/libomemo LOMEMO_DIR=$(LDIR)/libomemo
LOMEMO_SRC=$(LOMEMO_DIR)/src LOMEMO_SRC=$(LOMEMO_DIR)/src
LOMEMO_BUILD=$(LOMEMO_DIR)/build LOMEMO_BUILD=$(LOMEMO_DIR)/build
...@@ -120,12 +123,21 @@ install-home: $(BDIR)/lurch.so ...@@ -120,12 +123,21 @@ install-home: $(BDIR)/lurch.so
$(INSTALL_DIR) "$(PURPLE_HOME_PLUGIN_DIR)" $(INSTALL_DIR) "$(PURPLE_HOME_PLUGIN_DIR)"
$(INSTALL_LIB) "$(BDIR)/lurch.so" "$(PURPLE_HOME_PLUGIN_DIR)/lurch.so" $(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: clean:
$(RM_RF) "$(BDIR)" $(RM_RF) "$(BDIR)"
$(RM_RF) "./$(TARBALL_DIR_NAME)"
clean-all: clean clean-all: clean
$(MAKE) -C "$(LOMEMO_DIR)" clean $(MAKE) -C "$(LOMEMO_DIR)" clean
$(MAKE) -C "$(AXC_DIR)" clean $(MAKE) -C "$(AXC_DIR)" clean
.PHONY: clean clean-all install install-home .PHONY: clean clean-all install install-home tarball
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment