mirror of
https://github.com/cc65/cc65.git
synced 2025-01-30 12:33:15 +00:00
make: change uppercase prefix var
This commit is contained in:
parent
64581b65b0
commit
19f6ae1d54
@ -6,8 +6,8 @@ endif
|
||||
|
||||
.SUFFIXES:
|
||||
|
||||
htmldir = $(prefix)/share/doc/cc65$(DESTPACKAGE_SUFFIX)/html
|
||||
infodir = $(prefix)/share/info
|
||||
htmldir = $(PREFIX)/share/doc/cc65$(DESTPACKAGE_SUFFIX)/html
|
||||
infodir = $(PREFIX)/share/info
|
||||
|
||||
ifdef CMD_EXE
|
||||
|
||||
@ -46,7 +46,7 @@ clean:
|
||||
$(RM) -r ../html ../info
|
||||
|
||||
install:
|
||||
$(if $(prefix),,$(error variable `prefix' must be set))
|
||||
$(if $(PREFIX),,$(error variable `PREFIX' must be set))
|
||||
ifeq ($(wildcard ../html),../html)
|
||||
$(INSTALL) -d $(DESTDIR)$(htmldir)
|
||||
$(INSTALL) -m0644 ../html/*.* $(DESTDIR)$(htmldir)
|
||||
|
@ -72,7 +72,7 @@ endif
|
||||
|
||||
ifndef TARGET
|
||||
|
||||
datadir = $(prefix)/share/cc65
|
||||
datadir = $(PREFIX)/share/cc65
|
||||
|
||||
all lib: $(TARGETS)
|
||||
|
||||
@ -92,7 +92,7 @@ INSTALL = install
|
||||
|
||||
define INSTALL_recipe
|
||||
|
||||
$(if $(prefix),,$(error variable `prefix' must be set))
|
||||
$(if $(PREFIX),,$(error variable `PREFIX' must be set))
|
||||
$(INSTALL) -d $(DESTDIR)$(datadir)/$(dir)
|
||||
$(INSTALL) -m0644 ../$(dir)/*.* $(DESTDIR)$(datadir)/$(dir)
|
||||
|
||||
|
@ -237,10 +237,10 @@ samples.atr: samples
|
||||
# Installation rules
|
||||
|
||||
INSTALL = install
|
||||
samplesdir = $(prefix)/share/cc65/samples
|
||||
samplesdir = $(PREFIX)/share/cc65/samples
|
||||
|
||||
install:
|
||||
$(if $(prefix),,$(error variable `prefix' must be set))
|
||||
$(if $(PREFIX),,$(error variable `PREFIX' must be set))
|
||||
$(INSTALL) -d $(DESTDIR)$(samplesdir)
|
||||
$(INSTALL) -d $(DESTDIR)$(samplesdir)/geos
|
||||
$(INSTALL) -d $(DESTDIR)$(samplesdir)/tutorial
|
||||
|
@ -19,8 +19,8 @@ PROGS = ar65 \
|
||||
|
||||
.SUFFIXES:
|
||||
|
||||
bindir := $(prefix)/bin
|
||||
datadir := $(if $(prefix),$(prefix)/share/cc65,$(abspath ..))
|
||||
bindir := $(PREFIX)/bin
|
||||
datadir := $(if $(PREFIX),$(PREFIX)/share/cc65,$(abspath ..))
|
||||
|
||||
CA65_INC = $(datadir)/asminc
|
||||
CC65_INC = $(datadir)/include
|
||||
@ -107,7 +107,7 @@ $(RM) /usr/local/bin/$(prog)
|
||||
endef # UNAVAIL_recipe
|
||||
|
||||
install:
|
||||
$(if $(prefix),,$(error variable `prefix' must be set))
|
||||
$(if $(PREFIX),,$(error variable `PREFIX' must be set))
|
||||
$(INSTALL) -d $(DESTDIR)$(bindir)
|
||||
$(INSTALL) ../bin/* $(DESTDIR)$(bindir)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user