fix: Makefile now builds for linux on unknown OS

This commit is contained in:
TopchetoEU 2022-09-19 10:45:54 +03:00
parent 5f778db5c2
commit 5f8af06d51
No known key found for this signature in database
GPG Key ID: 0F2543CA49C81E3A
2 changed files with 3 additions and 8 deletions

View File

@ -64,7 +64,7 @@ uninstall:
version: version:
cmd /c "set /a $(version-build) + 1 > build.version" cmd /c "set /a $(version-build) + 1 > build.version"
else ifeq ($(os),Linux) else
ldflags += -lpthread ldflags += -lpthread
@ -86,7 +86,7 @@ clear:
install: build install: build
echo Installing ++C compiler to your system... echo Installing ++C compiler to your system...
sudo cp $(bin)/*.so /usr/lib sudo cp $(bin)/*.so /usr/lib
sudo cp $(bin)/$(output)-linux /usr/bin/$(output) sudo cp $(binary) /usr/bin/$(output)
sudo chmod +777 /usr/bin/$(output) sudo chmod +777 /usr/bin/$(output)
sudo chmod +777 $(patsubst $(bin)/%,/usr/lib/%,$(wildcard $(bin)/*.so)) sudo chmod +777 $(patsubst $(bin)/%,/usr/lib/%,$(wildcard $(bin)/*.so))
uninstall: uninstall:
@ -103,7 +103,4 @@ leak: build
lint: lint:
echo ========================= Linting ========================== echo ========================= Linting ==========================
cppcheck $(src) --track-origins=yes --suppress=unusedFunction --suppress=missingInclude --enable=all cppcheck $(src) --track-origins=yes --suppress=unusedFunction --suppress=missingInclude --enable=all
else
$(error Unknown OS)
endif endif

View File

@ -68,6 +68,4 @@ Any help is entirely voluntary, yet very much appreciated. If you see any bugs,
- Prerequisites: `gcc`, `make` (I use the GnuWin port) - Prerequisites: `gcc`, `make` (I use the GnuWin port)
### Mac OS X ### Mac OS X
Fuck you, get a normal OS For now, there's no official support, but the build scripts should in theory work with any unix-like OS. You can try to use the linux instructions
(just kidding, I can't be bothered to add Mac support)