From 0c93355e607b92c5fd6d2ad7f52dff7aa0c72d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Sun, 25 Jun 2023 20:17:28 +0200 Subject: [PATCH] chore: remove .exe file extension to be more "linux way" --- .gitignore | 1 - .releaserc.json | 2 +- Makefile | 6 +++--- README.md | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 3448402..8a9b739 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,5 @@ documentation .vscode *.out *.o -*.exe *.a node_modules diff --git a/.releaserc.json b/.releaserc.json index 65127af..f2c56bb 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -16,7 +16,7 @@ [ "@semantic-release/exec", { - "prepareCmd": "make set_version && ./bin/set_version.exe ${nextRelease.version}" + "prepareCmd": "make set_version && ./bin/set_version ${nextRelease.version}" } ], [ diff --git a/Makefile b/Makefile index 82d9327..ae5c895 100644 --- a/Makefile +++ b/Makefile @@ -8,9 +8,9 @@ LIB_OBJECTS = $(patsubst %.c, %.o, $(LIB_SOURCES)) TEST_SOURCES = $(wildcard test/*.c) TEST_OBJECTS = $(patsubst %.c, %.o, $(TEST_SOURCES)) HEADER_FILES = $(wildcard lib/*.h) $(wildcard test/*.h) ./${LIBRARY_NAME}.h -MAIN_EXECUTABLE = bin/main.exe -SET_VERSION_EXECUTABLE = bin/set_version.exe -TEST_EXECUTABLE = bin/test.exe +MAIN_EXECUTABLE = bin/main +SET_VERSION_EXECUTABLE = bin/set_version +TEST_EXECUTABLE = bin/test ${LIB}: $(addprefix build/, ${LIB_OBJECTS}) rm --force ${LIB} diff --git a/README.md b/README.md index e99243b..7fecf40 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ int main() { ### Step 5: Compile your project and link it with the library ```sh -gcc -o ./main.exe ./main.c -L. -l:./libcproject/build/libcproject.a +gcc -o ./main ./main.c -L. -l:./libcproject/build/libcproject.a ``` ## 💡 Contributing