Skip to content
Snippets Groups Projects
Commit fca7d491 authored by Andrea Bignamini's avatar Andrea Bignamini
Browse files

Add make tar

The option make tar is added to Makefile
parent 49011e4f
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,8 @@ EXEC_NAME=metadataExporter-srv ...@@ -3,6 +3,8 @@ EXEC_NAME=metadataExporter-srv
INST_NAME=test INST_NAME=test
DEBUG_LEV=-v3 DEBUG_LEV=-v3
INSTALL_DIR=/usr/local/bin INSTALL_DIR=/usr/local/bin
VERSION := `git describe --tags`
TAR_NAME := `basename $(PWD)`
#================================================================================ #================================================================================
INC_DIR=/usr/local/omniORB/include \ INC_DIR=/usr/local/omniORB/include \
/usr/local/zeromq/include/zmq \ /usr/local/zeromq/include/zmq \
...@@ -91,6 +93,10 @@ deepclean: ...@@ -91,6 +93,10 @@ deepclean:
install: install:
-cp $(EXECUTABLE) $(INSTALL_DIR) -cp $(EXECUTABLE) $(INSTALL_DIR)
.PHONY: tar
tar:
-tar -czvf $(TAR_NAME)_$(VERSION).tar.gz --transform="s|^.|$(TAR_NAME)_$(VERSION)/|" $(PROTO_DIR) $(SRC_DIR) ./Makefile
.PHONY: echo .PHONY: echo
echo: echo:
@echo EXECUTABLE: @echo EXECUTABLE:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment