also test DESTDIR
This commit is contained in:
8
Makefile
8
Makefile
@@ -25,7 +25,9 @@ zip:
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
ifndef PREFIX
|
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
|
endif
|
||||||
@$(MAKE) -C src --no-print-directory $@
|
@$(MAKE) -C src --no-print-directory $@
|
||||||
@$(MAKE) -C libsrc --no-print-directory $@
|
@$(MAKE) -C libsrc --no-print-directory $@
|
||||||
@@ -73,7 +75,9 @@ util:
|
|||||||
|
|
||||||
checkprefix:
|
checkprefix:
|
||||||
ifndef PREFIX
|
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
|
||||||
|
|
||||||
# check the code style
|
# check the code style
|
||||||
|
|||||||
@@ -103,7 +103,9 @@ endif
|
|||||||
all bin: $(PROGS)
|
all bin: $(PROGS)
|
||||||
ifeq ($(MAKELEVEL),0)
|
ifeq ($(MAKELEVEL),0)
|
||||||
ifndef PREFIX
|
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
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user