Use DESTDIR instead of prefix
This commit is contained in:
parent
89d097db42
commit
e2a8980bee
10
Makefile
10
Makefile
@ -5,19 +5,19 @@ ifeq ($(version),)
|
|||||||
version := $(shell git log -1 --abbrev=8 --pretty=git%h)
|
version := $(shell git log -1 --abbrev=8 --pretty=git%h)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
prefix := /usr
|
DESTDIR := /usr
|
||||||
|
|
||||||
datadir := $(prefix)/share
|
DATADIR := $(DESTDIR)/share
|
||||||
|
|
||||||
docdir := $(datadir)/doc/
|
DOCDIR := $(DATADIR)/doc/
|
||||||
|
|
||||||
name := spin-kickstarts
|
name := spin-kickstarts
|
||||||
|
|
||||||
all: dist
|
all: dist
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install *.ks custom l10n $(datadir)/$(name)
|
install *.ks custom l10n $(DATADIR)/$(name)
|
||||||
install AUTHORS COPYING README $(docdir)/$(name)
|
install AUTHORS COPYING README $(DOCDIR)/$(name)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(name)-*.tar.gz
|
rm -f $(name)-*.tar.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user