fix: Makefile now builds for linux on unknown OS
This commit is contained in:
parent
5f778db5c2
commit
5f8af06d51
7
Makefile
7
Makefile
@ -64,7 +64,7 @@ uninstall:
|
||||
version:
|
||||
cmd /c "set /a $(version-build) + 1 > build.version"
|
||||
|
||||
else ifeq ($(os),Linux)
|
||||
else
|
||||
|
||||
ldflags += -lpthread
|
||||
|
||||
@ -86,7 +86,7 @@ clear:
|
||||
install: build
|
||||
echo Installing ++C compiler to your system...
|
||||
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 $(patsubst $(bin)/%,/usr/lib/%,$(wildcard $(bin)/*.so))
|
||||
uninstall:
|
||||
@ -103,7 +103,4 @@ leak: build
|
||||
lint:
|
||||
echo ========================= Linting ==========================
|
||||
cppcheck $(src) --track-origins=yes --suppress=unusedFunction --suppress=missingInclude --enable=all
|
||||
|
||||
else
|
||||
$(error Unknown OS)
|
||||
endif
|
||||
|
@ -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)
|
||||
### Mac OS X
|
||||
|
||||
Fuck you, get a normal OS
|
||||
|
||||
(just kidding, I can't be bothered to add Mac support)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user