Update Makefile (#439)

* Use make clean to clean up version, not .PHONY which causes rebuild during 'make install'
* Update build instructions to use 'make clean' before 'make'
This commit is contained in:
abraunegg 2019-03-26 09:40:07 +11:00 committed by GitHub
parent ebad4aed89
commit 62c5179653
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 9 deletions

View file

@ -72,7 +72,7 @@ endif
all: onedrive onedrive.service onedrive.1
clean:
rm -f onedrive onedrive.o onedrive.service onedrive@.service onedrive.1
rm -f onedrive onedrive.o onedrive.service onedrive@.service onedrive.1 version
onedrive: version $(SOURCES)
$(DC) $(DFLAGS) $(SOURCES)
@ -140,7 +140,4 @@ ifeq ($(gitversion),1)
echo $(shell git describe --tags) > version
else
echo $(RELEASEVER) > version
endif
.PHONY: version
endif

View file

@ -181,7 +181,7 @@ Without performing this step, the compilation process will fail.
```text
git clone https://github.com/abraunegg/onedrive.git
cd onedrive
make
make clean; make;
sudo make install
```
@ -203,7 +203,7 @@ information, useful (for example) to get `perf`-issued figures.
```text
git clone https://github.com/abraunegg/onedrive.git
cd onedrive
make DC=/usr/bin/ldc2
make clean; make DC=/usr/bin/ldc2
sudo make install
```
@ -211,7 +211,7 @@ sudo make install
```text
git clone https://github.com/abraunegg/onedrive.git
cd onedrive
make DC=~/ldc2-1.13.0-linux-armhf/bin/ldmd2
make clean; make DC=~/ldc2-1.13.0-linux-armhf/bin/ldmd2
sudo make install
```
@ -219,7 +219,7 @@ sudo make install
```text
git clone https://github.com/abraunegg/onedrive.git
cd onedrive
make DC=~/ldc2-1.14.0-linux-aarch64/bin/ldmd2
make clean; make DC=~/ldc2-1.14.0-linux-aarch64/bin/ldmd2
sudo make install
```