From: Sergey Matveev Date: Sun, 15 Jan 2017 15:38:14 +0000 (+0300) Subject: Take into account PREFIX when setting default config path X-Git-Tag: 0.2^2~14 X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=ff80ddb8eee862dea7a848cfd34075092591cb0a;p=nncp.git Take into account PREFIX when setting default config path --- diff --git a/common.mk b/common.mk index 084576b..dee003f 100644 --- a/common.mk +++ b/common.mk @@ -1,15 +1,15 @@ .PHONY: doc -CFGPATH ?= /usr/local/etc/nncp.yaml SENDMAIL ?= /usr/sbin/sendmail -LDFLAGS = \ - -X cypherpunks.ru/nncp.Version=$(VERSION) \ - -X cypherpunks.ru/nncp.DefaultCfgPath=$(CFGPATH) \ - -X cypherpunks.ru/nncp.DefaultSendmailPath=$(SENDMAIL) PREFIX ?= /usr/local +CFGPATH ?= $(PREFIX)/etc/nncp.yaml BINDIR = $(DESTDIR)$(PREFIX)/bin INFODIR = $(DESTDIR)$(PREFIX)/info DOCDIR = $(DESTDIR)$(PREFIX)/share/doc/nncp +LDFLAGS = \ + -X cypherpunks.ru/nncp.Version=$(VERSION) \ + -X cypherpunks.ru/nncp.DefaultCfgPath=$(CFGPATH) \ + -X cypherpunks.ru/nncp.DefaultSendmailPath=$(SENDMAIL) ALL = \ nncp-mail \ nncp-call \