1
1
mirror of https://github.com/theoludwig/libcproject.git synced 2024-11-13 23:43:13 +01:00

chore: remove .exe file extension to be more "linux way"

This commit is contained in:
Théo LUDWIG 2023-06-25 20:17:28 +02:00
parent 016bfeb47f
commit 0c93355e60
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B
4 changed files with 5 additions and 6 deletions

1
.gitignore vendored
View File

@ -4,6 +4,5 @@ documentation
.vscode .vscode
*.out *.out
*.o *.o
*.exe
*.a *.a
node_modules node_modules

View File

@ -16,7 +16,7 @@
[ [
"@semantic-release/exec", "@semantic-release/exec",
{ {
"prepareCmd": "make set_version && ./bin/set_version.exe ${nextRelease.version}" "prepareCmd": "make set_version && ./bin/set_version ${nextRelease.version}"
} }
], ],
[ [

View File

@ -8,9 +8,9 @@ LIB_OBJECTS = $(patsubst %.c, %.o, $(LIB_SOURCES))
TEST_SOURCES = $(wildcard test/*.c) TEST_SOURCES = $(wildcard test/*.c)
TEST_OBJECTS = $(patsubst %.c, %.o, $(TEST_SOURCES)) TEST_OBJECTS = $(patsubst %.c, %.o, $(TEST_SOURCES))
HEADER_FILES = $(wildcard lib/*.h) $(wildcard test/*.h) ./${LIBRARY_NAME}.h HEADER_FILES = $(wildcard lib/*.h) $(wildcard test/*.h) ./${LIBRARY_NAME}.h
MAIN_EXECUTABLE = bin/main.exe MAIN_EXECUTABLE = bin/main
SET_VERSION_EXECUTABLE = bin/set_version.exe SET_VERSION_EXECUTABLE = bin/set_version
TEST_EXECUTABLE = bin/test.exe TEST_EXECUTABLE = bin/test
${LIB}: $(addprefix build/, ${LIB_OBJECTS}) ${LIB}: $(addprefix build/, ${LIB_OBJECTS})
rm --force ${LIB} rm --force ${LIB}

View File

@ -107,7 +107,7 @@ int main() {
### Step 5: Compile your project and link it with the library ### Step 5: Compile your project and link it with the library
```sh ```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 ## 💡 Contributing