This patch is meant to add DESTDIR support and allow controlling compiler, install prefix, etc. using make arguments and env variables, without changing the default make behavior.
Most useful for package managers, but can be used interactively as well.
Should apply with.
patch < filename
If you prefer a pull request, I can do that for you, but it seems like overkill for a simple one-file diff. I think this is easier on everyone's eyes.
This patch is meant to add DESTDIR support and allow controlling compiler, install prefix, etc. using make arguments and env variables, without changing the default make behavior.
Most useful for package managers, but can be used interactively as well.
Should apply with.
patch < filename
If you prefer a pull request, I can do that for you, but it seems like overkill for a simple one-file diff. I think this is easier on everyone's eyes.
Cheers,
Jason
--- Makefile.orig 2018-06-08 21:24:17 UTC +++ Makefile @@ -23,9 +23,9 @@ INC = GCC_PREFIX = $(shell dirname
which gcc
) GCC_SUFFIX = -CC = $(GCC_PREFIX)/gcc$(GCC_SUFFIX) -CPP = $(GCC_PREFIX)/g++$(GCC_SUFFIX) -CXX = $(CPP) #-fdiagnostics-color=always +CC ?= $(GCC_PREFIX)/gcc$(GCC_SUFFIX) +CXX ?= $(GCC_PREFIX)/g++$(GCC_SUFFIX) +CPP = $(CXX) #-fdiagnostics-color=always HEADERS = $(wildcard *.h) BOWTIE_MM = 1 BOWTIE_SHARED_MEM = 0 @@ -409,24 +409,34 @@ doc/manual.inc.html: MANUAL.markdown MANUAL: MANUAL.markdown perl doc/strip_markdown.pl < $^ > $@-prefix=/usr/local +PREFIX ?= /usr/local +DESTDIR ?= +STRIP_CMD ?= strip +DOCSDIR ?= $(PREFIX)/share/centrifuge/doc + +.PHONY: install-strip +install-strip: install
done
.PHONY: install install: all
install -m 0755 $$file $(DESTDIR)$(PREFIX)/bin ; \ done
.PHONY: uninstall uninstall: all for file in $(CENTRIFUGE_BIN_LIST) $(CENTRIFUGE_SCRIPT_LIST); do \