summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-07-26 09:06:12 +0200
committerPaul Buetow <paul@buetow.org>2013-07-26 09:06:12 +0200
commit0150fd1b5e4e2e30c98eff9b0bc12cb9bd1363d8 (patch)
tree6e9208e6d679e0b93295c36160561e2785789c36 /Makefile
parenteeb9f1989048c12296c26f4f5c13493a702f547f (diff)
make all
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 055bc47..d320215 100644
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,9 @@ all: version documentation build
# Builds the project. Since this is only a fake project, it just copies a script.
build:
- test ! -d ./bin && mkdir ./bin
- cp -p ./src/$(NAME) ./bin/$(NAME)
+ test ! -d ./bin && mkdir ./bin || exit 0
+ sed "s/VERSION/$$(cat .version)/" src/$(NAME) > ./bin/$(NAME)
+ chmod 755 ./bin/$(NAME)
# 'install' installes a fake-root, which will be used to build the Debian package
# $DESTDIR is actually set by the Debian tools.
@@ -16,7 +17,7 @@ deinstall:
test ! -z "$(DESTDIR)" && test -f $(DESTDIR)/usr/bin/$(NAME) && rm $(DESTDIR)/usr/bin/$(NAME) || exit 0
clean:
- test -d ./bin && rm -Rf ./bin
+ test -d ./bin && rm -Rf ./bin || exit 0
# ADDITIONAL RULES: