diff options
| author | Teddy Wing | 2018-10-29 22:58:12 +0100 |
|---|---|---|
| committer | Teddy Wing | 2018-10-29 22:58:12 +0100 |
| commit | 52ee9fc272d3cbc19a47b6903c884a58b171d043 (patch) | |
| tree | 36f27e6532b8fd2cf4d85cb035ddee998fd4ad5c | |
| parent | 223651a128363353dc0d7815171e0ba49000a764 (diff) | |
| download | dome-key-map-52ee9fc272d3cbc19a47b6903c884a58b171d043.tar.bz2 | |
Makefile: Use `:=` instead of `=` on `SOURCE_FILES`
MadScientist (https://stackoverflow.com/users/939557/madscientist) on
Stack Overflow says:
> Also you should always use := not = for shell (and wildcard, for that
> matter) for performance reasons.
(https://stackoverflow.com/questions/26694249/makefiles-using-wildcard-vs-find-for-specifying-source-files/26694693#26694693)
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,4 +1,4 @@ -SOURCE_FILES = $(shell find src -type f -name '*.rs') +SOURCE_FILES := $(shell find src -type f -name '*.rs') LIB := target/debug/libdome_key_map.a |
