diff options
| author | Paul Buetow <paul@buetow.org> | 2013-07-26 09:06:12 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-07-26 09:06:12 +0200 |
| commit | 0150fd1b5e4e2e30c98eff9b0bc12cb9bd1363d8 (patch) | |
| tree | 6e9208e6d679e0b93295c36160561e2785789c36 /Makefile | |
| parent | eeb9f1989048c12296c26f4f5c13493a702f547f (diff) | |
make all
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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: |
