Skip to content
Snippets Groups Projects
Commit 2e73c76f authored by Seblu's avatar Seblu
Browse files

Makefile now sexy handle source and binary debien pakage creation

parent 91eabb82
No related branches found
No related tags found
No related merge requests found
## Makefile ## Makefile
.PHONY: deb debclean .PHONY: all tar deb clean cleanbuild
NAME=cc-cli
BUILD_DIR=__build__
all: all:
echo all is better than nothing
tar: cleanbuild
git clone "." $(BUILD_DIR)/$(NAME)
-dpkg-source -I -b $(BUILD_DIR)/$(NAME)
-rm -rf $(BUILD_DIR)
deb: cleanbuild
git clone "." $(BUILD_DIR)/$(NAME)
-cd $(BUILD_DIR)/$(NAME) && dpkg-buildpackage --source-option=-I
-rm -rf $(BUILD_DIR)/$(NAME)
mv -vf $(BUILD_DIR)/* .
-rm -rf $(BUILD_DIR)
clean: clean_build
cleanbuild:
-rm -rf $(BUILD_DIR)
deb:
dpkg-buildpackage
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment