Skip to content

Commit

Permalink
Makefile: Correctly clean files in rule (#33)
Browse files Browse the repository at this point in the history
On systems where GNU Make is present and a different
extension is used at compile time, the clean rule does
not correctly clean out files when requested.

Appending the EXT variable to the list of cleaned files
allows the clean rule to work on this circumstance.

Signed-off-by: Keto <therealketo@gmail.com>
  • Loading branch information
TheRealKeto committed Dec 13, 2023
1 parent d38b9ed commit 36794c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ install: all
done

clean:
rm -rf ldid *.o
rm -rf ldid$(EXT) *.o

.PHONY: all clean install

0 comments on commit 36794c4

Please sign in to comment.