diff options
| author | Paul Buetow <paul@buetow.org> | 2013-07-26 09:01:55 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-07-26 09:01:55 +0200 |
| commit | aae81bc31444e9d9278ce8db9d63aafcae953460 (patch) | |
| tree | b490aea398aeb0422cf616b55443744ee72196c1 /Makefile | |
| parent | d38f6b1aeb6e44831ceedc8b1d35347228f751a4 (diff) | |
retab, VERSION
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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: |
