Commit 92f0f24a authored by Martin's avatar Martin

makefile improvements

parent 3c4c54bb
......@@ -3,12 +3,12 @@ PKG_NAME=fb-git-tools
VERSION=$(shell cat VERSION)
PKG_FILE=$(PKG_NAME)-$(VERSION).deb
.PHONY: clean dist
.PHONY: clean
dist: src/* debian/*
test -d dist || mkdir dist
test -f 'dist/$(PKG_FILE)' && rm 'dist/$(PKG_FILE)'
# test -f 'dist/$(PKG_FILE)' && rm 'dist/$(PKG_FILE)' || true
$(FPM) -t deb --package 'dist/$(PKG_FILE)' --version $(VERSION) --name $(PKG_NAME) --depends 'git' --depends 'bash' --after-install 'debian/postinstall' --before-remove 'debian/preremove' -s dir ./src/=/usr/bin/
clean:
rm -rf dist
test -d dist && rm -rf dist || true
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