1
0
mirror of https://github.com/cc65/cc65.git synced 2026-01-23 08:16:38 +00:00

Merge pull request #2758 from mrdudz/fixdestdir

also test DESTDIR
This commit is contained in:
Bob Andrews
2025-06-30 16:27:23 +02:00
committed by GitHub
2 changed files with 9 additions and 3 deletions

View File

@@ -25,7 +25,9 @@ zip:
install:
ifndef PREFIX
$(error Error: PREFIX must be set for install to work)
ifndef DESTDIR
$(error Error: PREFIX or DESTDIR must be set for install to work)
endif
endif
@$(MAKE) -C src --no-print-directory $@
@$(MAKE) -C libsrc --no-print-directory $@
@@ -73,7 +75,9 @@ util:
checkprefix:
ifndef PREFIX
$(warning Warning: PREFIX is empty - make install will not work)
ifndef DESTDIR
$(warning Warning: PREFIX and DESTDIR are empty - make install will not work)
endif
endif
# check the code style

View File

@@ -103,7 +103,9 @@ endif
all bin: $(PROGS)
ifeq ($(MAKELEVEL),0)
ifndef PREFIX
$(warning Warning: PREFIX is empty - make install will not work)
ifndef DESTDIR
$(warning Warning: PREFIX and DESTDIR are empty - make install will not work)
endif
endif
endif