From c5512280799644e434104f9c700624a9270dd62f Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Fri, 17 May 2013 15:05:41 +0200 Subject: [PATCH] Makefile: Minor cleanup and only set ROOTDIR if unset already. The ROOTDIR variable is used for pretty formatting during compilation. Some users might want to have this display the build from the top of their tree instead of the finit build tree. Signed-off-by: Joachim Nilsson --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c3242389..e290ffae 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ uninstall-exec uninstall-data uninstall-dev # Top directory for building complete system, fall back to this directory -ROOTDIR = $(shell pwd) +ROOTDIR ?= $(shell pwd) #VERSION ?= $(shell git tag -l | tail -1) VERSION ?= 1.7 @@ -158,9 +158,6 @@ dev: distclean cd - >/dev/null; mv $$dir/$(DEV).tar.xz ../; cd ..; \ rm -rf $$dir; md5sum $(DEV).tar.xz | tee $(DEV).tar.xz.md5) -# Include automatically generated rules, such as: -# uncgi.o: .../some/dir/uncgi.c /usr/include/stdio.h -# but don't bother during clean! ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),distclean) -include $(DEPS)