mirror of
https://github.com/Tiiffi/mcrcon.git
synced 2025-10-27 19:31:07 -04:00
- Remove "ginstall" as "install" replacement on macOS - Remove "-D" flag from "install" parameters
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
Building and installing
|
Building and installing
|
||||||
------------------------
|
-----------------------
|
||||||
|
|
||||||
Only dependency is C library and POSIX getopt support.
|
Only dependency is C library and POSIX getopt support.
|
||||||
|
|
||||||
|
|||||||
11
Makefile
11
Makefile
@ -4,7 +4,7 @@
|
|||||||
# make
|
# make
|
||||||
#
|
#
|
||||||
# Windows cross compile:
|
# Windows cross compile:
|
||||||
# i686-w64-mingw32-gcc -std=gnu99 -Wall -Wextra -Wpedantic -O2 -o mcrcon.exe mcrcon.c -lws2_32
|
# x86_64-w64-mingw32-gcc -std=gnu99 -Wall -Wextra -Wpedantic -O2 -fstack-protector-all -o mcrcon.exe mcrcon.c -lws2_32
|
||||||
|
|
||||||
EXENAME = mcrcon
|
EXENAME = mcrcon
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
@ -23,11 +23,6 @@ ifeq ($(OS), Windows_NT)
|
|||||||
RM = cmd /C del /F
|
RM = cmd /C del /F
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(shell uname), Darwin)
|
|
||||||
INSTALL = ginstall
|
|
||||||
CFLAGS = -std=gnu99 -Wall -Wextra -Wpedantic -O2
|
|
||||||
endif
|
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(EXENAME)
|
all: $(EXENAME)
|
||||||
|
|
||||||
@ -37,8 +32,8 @@ $(EXENAME): mcrcon.c
|
|||||||
ifneq ($(OS), Windows_NT)
|
ifneq ($(OS), Windows_NT)
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install:
|
install:
|
||||||
$(INSTALL) -vD $(EXENAME) $(DESTDIR)$(PREFIX)/bin/$(EXENAME)
|
$(INSTALL) -v $(EXENAME) $(DESTDIR)$(PREFIX)/bin/$(EXENAME)
|
||||||
$(INSTALL) -vD -m 0644 mcrcon.1 $(DESTDIR)$(PREFIX)/share/man/man1/mcrcon.1
|
$(INSTALL) -v -m 0644 mcrcon.1 $(DESTDIR)$(PREFIX)/share/man/man1/mcrcon.1
|
||||||
@echo "\nmcrcon installed. Run 'make uninstall' if you want to uninstall.\n"
|
@echo "\nmcrcon installed. Run 'make uninstall' if you want to uninstall.\n"
|
||||||
|
|
||||||
.PHONY: uninstall
|
.PHONY: uninstall
|
||||||
|
|||||||
Reference in New Issue
Block a user