mirror of
https://github.com/troglobit/finit.git
synced 2026-10-28 12:30:44 +00:00
Build: Make subdir build prettier.
The ROOTDIR variable was only set in the top-level Makefile, so when building from a subdirectory the output was slightly garbled. Moved ROOTDIR declaration to common.mk. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
d0c902ab78
commit
56ef3f75d3
2 files changed
+8
-8
No files matched your search
@@ -25,9 +25,6 @@
|
|||||||
install-exec install-data install-dev \
|
install-exec install-data install-dev \
|
||||||
uninstall-exec uninstall-data uninstall-dev
|
uninstall-exec uninstall-data uninstall-dev
|
||||||
|
|
||||||
# Top directory for building complete system, fall back to this directory
|
|
||||||
ROOTDIR ?= $(shell pwd)
|
|
||||||
|
|
||||||
#VERSION ?= $(shell git tag -l | tail -1)
|
#VERSION ?= $(shell git tag -l | tail -1)
|
||||||
VERSION ?= 1.7
|
VERSION ?= 1.7
|
||||||
NAME = finit
|
NAME = finit
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
|
# Top directory for building complete system, fall back to this directory
|
||||||
|
ROOTDIR ?= $(shell pwd)
|
||||||
|
|
||||||
# Some junk files we always want to be removed when doing a make clean.
|
# Some junk files we always want to be removed when doing a make clean.
|
||||||
JUNK = *~ *.bak *.aux *.dvi *.idx *.ind *.log *.ps *.map .*.d DEADJOE semantic.cache *.gdb *.elf core core.*
|
JUNK = *~ *.bak *.aux *.dvi *.idx *.ind *.log *.ps *.map .*.d DEADJOE semantic.cache *.gdb *.elf core core.*
|
||||||
MAKE := @$(MAKE)
|
MAKE := @$(MAKE)
|
||||||
MAKEFLAGS = --no-print-directory --silent
|
MAKEFLAGS = --no-print-directory --silent
|
||||||
INSTALL := install --backup=off
|
INSTALL := install --backup=off
|
||||||
STRIPINST := $(INSTALL) -s --strip-program=$(CROSS)strip -m 0755
|
STRIPINST := $(INSTALL) -s --strip-program=$(CROSS)strip -m 0755
|
||||||
|
|
||||||
# Smart autodependecy generation via GCC -M.
|
# Smart autodependecy generation via GCC -M.
|
||||||
.%.d: %.c
|
.%.d: %.c
|
||||||
|
|||||||
Reference in new issue
Block a user