aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-05-01 22:02:49 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-05-01 22:02:49 +0300
commit05d4244f68e35c1bef6488292bf9730df3636fd9 (patch)
tree1a5d0ec138060020cf16bd472691e64b260ccbe0 /Makefile
parent2093765807e60a28ef4e0691474ea5b20346bf00 (diff)
downloadkmi-05d4244f68e35c1bef6488292bf9730df3636fd9.tar.gz
kmi-05d4244f68e35c1bef6488292bf9730df3636fd9.zip
update license stuff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ef2cceb..dfc1c46 100644
--- a/Makefile
+++ b/Makefile
@@ -79,8 +79,6 @@ INIT_LD != ./scripts/gen-deps --init --link "$(INIT_LINK).S"
$(INIT_LD): kernel.bin
-lint: $(INIT_OBJECTS:.o=.o.l) $(KERNEL_OBJECTS:.o=.o.l)
-
init.elf: $(INIT_OBJECTS) $(INIT_LD)
$(GENELF) -T $(INIT_LD) $(INIT_OBJECTS) -o init.elf $(LINK_FLAGS)
@@ -96,15 +94,25 @@ kernel.bin: kernel.elf
kmi.bin: init.bin kernel.bin
cat init.bin kernel.bin > kmi.bin
+.PHONY:
+lint: $(INIT_OBJECTS:.o=.o.l) $(KERNEL_OBJECTS:.o=.o.l)
+
+.PHONY: format
format:
find arch lib common include -iname '*.[ch]' |\
xargs -n 10 -P 0 uncrustify -c uncrustify.conf --no-backup -F -
+.PHONY: license
+license:
+ find arch lib common include -iname '*.[ch]' |\
+ xargs -n 10 -P 0 ./scripts/license
+
.PHONY: docs
docs:
./scripts/warn-undocumented
doxygen docs/doxygen.conf
+# bmake didn't seem to have the -f flag on by default
RM ?= rm -f
.PHONY: clean