mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
Makefiles: remove spurious spaces/tabs
This commit is contained in:
parent
961d929f4d
commit
2f12e57408
13 changed files with 85 additions and 85 deletions
40
Makefile
40
Makefile
|
@ -3,24 +3,24 @@ GZIP=gzip
|
||||||
# amount of shell command line parsing going on. echo "" on
|
# amount of shell command line parsing going on. echo "" on
|
||||||
# Windows yields literal "", on Linux yields an empty line
|
# Windows yields literal "", on Linux yields an empty line
|
||||||
ifeq ($(shell echo ""),)
|
ifeq ($(shell echo ""),)
|
||||||
# This is probably a proper system, so we can use uname
|
# This is probably a proper system, so we can use uname
|
||||||
DELETE=rm -rf
|
DELETE=rm -rf
|
||||||
FLASH_TOOL=client/flasher
|
FLASH_TOOL=client/flasher
|
||||||
platform=$(shell uname)
|
platform=$(shell uname)
|
||||||
ifneq (,$(findstring MINGW,$(platform)))
|
ifneq (,$(findstring MINGW,$(platform)))
|
||||||
FLASH_PORT=com3
|
FLASH_PORT=com3
|
||||||
PATHSEP=\\#
|
PATHSEP=\\#
|
||||||
|
else
|
||||||
|
FLASH_PORT=/dev/ttyACM0
|
||||||
|
PATHSEP=/
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
FLASH_PORT=/dev/ttyACM0
|
# Assume that we are running on native Windows
|
||||||
PATHSEP=/
|
DELETE=del /q
|
||||||
endif
|
FLASH_TOOL=client/flasher.exe
|
||||||
else
|
platform=Windows
|
||||||
# Assume that we are running on native Windows
|
FLASH_PORT=com3
|
||||||
DELETE=del /q
|
PATHSEP=\\#
|
||||||
FLASH_TOOL=client/flasher.exe
|
|
||||||
platform=Windows
|
|
||||||
FLASH_PORT=com3
|
|
||||||
PATHSEP=\\#
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all clean: %: client/% bootrom/% armsrc/% recovery/% mfkey/% nonce2key/%
|
all clean: %: client/% bootrom/% armsrc/% recovery/% mfkey/% nonce2key/%
|
||||||
|
@ -44,14 +44,14 @@ FORCE: # Dummy target to force remake in the subdirectories, even if files exist
|
||||||
help:
|
help:
|
||||||
@echo Multi-OS Makefile, you are running on $(DETECTED_OS)
|
@echo Multi-OS Makefile, you are running on $(DETECTED_OS)
|
||||||
@echo Possible targets:
|
@echo Possible targets:
|
||||||
@echo + all - Make bootrom, armsrc and the OS-specific host directory
|
@echo + all - Make bootrom, armsrc and the OS-specific host directory
|
||||||
@echo + client - Make only the OS-specific host directory
|
@echo + client - Make only the OS-specific host directory
|
||||||
@echo + flash-bootrom - Make bootrom and flash it
|
@echo + flash-bootrom - Make bootrom and flash it
|
||||||
@echo + flash-os - Make armsrc and flash os \(includes fpga\)
|
@echo + flash-os - Make armsrc and flash os \(includes fpga\)
|
||||||
@echo + flash-all - Make bootrom and armsrc and flash bootrom and os image
|
@echo + flash-all - Make bootrom and armsrc and flash bootrom and os image
|
||||||
@echo + mfkey - Make tools/mfkey
|
@echo + mfkey - Make tools/mfkey
|
||||||
@echo + nounce2key - Make tools/nounce2key
|
@echo + nounce2key - Make tools/nounce2key
|
||||||
@echo + clean - Clean in bootrom, armsrc and the OS-specific host directory
|
@echo + clean - Clean in bootrom, armsrc and the OS-specific host directory
|
||||||
|
|
||||||
client: client/all
|
client: client/all
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ endif
|
||||||
print-%: ; @echo $* = $($*)
|
print-%: ; @echo $* = $($*)
|
||||||
|
|
||||||
style:
|
style:
|
||||||
find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.lua" \) -exec perl -pi -e 's/[ \t\r]+$$//' {} \;
|
find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.lua" -or -name "Makefile" \) -exec perl -pi -e 's/[ \t\r]+$$//' {} \;
|
||||||
find . \( -name "*.[ch]" -or -name "*.cpp" \) -exec astyle --formatted --mode=c --suffix=none \
|
find . \( -name "*.[ch]" -or -name "*.cpp" \) -exec astyle --formatted --mode=c --suffix=none \
|
||||||
--indent=spaces=4 --indent-switches --indent-preprocessor \
|
--indent=spaces=4 --indent-switches --indent-preprocessor \
|
||||||
--keep-one-line-blocks --max-instatement-indent=60 \
|
--keep-one-line-blocks --max-instatement-indent=60 \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue