Commit 1353b7b0 authored by Alessandro Rubini's avatar Alessandro Rubini

all Makefiles: allow 'make install' from topdir

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 80b01619
DIRS = kernel tools doc
all clean:
all clean modules install modules_install:
for d in $(DIRS); do $(MAKE) -C $$d $@ || exit 1; done
......@@ -58,3 +58,5 @@ clean: terse
install:
# add the other unused targets, so the rule in ../Makefile works
modules modules_install:
......@@ -38,7 +38,7 @@ all modules:
install modules_install:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) modules_install
# be able to run the "clean" rule even if $(LINUX) is not valid
clean:
rm -rf *.o *~ .*.cmd *.ko *.mod.c .tmp_versions Module.symvers \
Module.markers modules.order
......@@ -31,3 +31,6 @@ clean:
spec-test00-cpu: crt0.o spec-test00-cpu.o
$(CC) $(LDFLAGS) $^ -o $@
# add the other unused targets, so the rule in ../Makefile works
modules install modules_install:
......@@ -22,3 +22,6 @@ loader-ll.o: ../kernel/loader-ll.c
clean:
rm -f *.o $(LIB) $(PROGS) *~
# add the other unused targets, so the rule in ../Makefile works
modules install modules_install:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment