summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-07-26 09:01:55 +0200
committerPaul Buetow <paul@buetow.org>2013-07-26 09:01:55 +0200
commitaae81bc31444e9d9278ce8db9d63aafcae953460 (patch)
treeb490aea398aeb0422cf616b55443744ee72196c1 /Makefile
parentd38f6b1aeb6e44831ceedc8b1d35347228f751a4 (diff)
retab, VERSION
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 6ab4551..055bc47 100644
--- a/Makefile
+++ b/Makefile
@@ -3,22 +3,20 @@ all: version documentation build
# Builds the project. Since this is only a fake project, it just copies a script.
build:
- cp -p ./src/$(NAME) bin/$(NAME)
+ test ! -d ./bin && mkdir ./bin
+ cp -p ./src/$(NAME) ./bin/$(NAME)
# 'install' installes a fake-root, which will be used to build the Debian package
# $DESTDIR is actually set by the Debian tools.
install:
test ! -d $(DESTDIR)/usr/bin && mkdir -p $(DESTDIR)/usr/bin || exit 0
- test ! -d $(DESTDIR)/usr/share/$(NAME) && mkdir -p $(DESTDIR)/usr/share/$(NAME) || exit 0
cp ./bin/* $(DESTDIR)/usr/bin
- #cp -r ./lib $(DESTDIR)/usr/share/$(NAME)/lib
deinstall:
test ! -z "$(DESTDIR)" && test -f $(DESTDIR)/usr/bin/$(NAME) && rm $(DESTDIR)/usr/bin/$(NAME) || exit 0
- test ! -z "$(DESTDIR)/usr/share/$(NAME)" && -d $(DESTDIR)/usr/share/$(NAME) && rm -r $(DESTDIR)/usr/share/$(NAME) || exit 0
clean:
- rm bin/*
+ test -d ./bin && rm -Rf ./bin
# ADDITIONAL RULES: