Skip to content
Snippets Groups Projects
Commit 78c8c217 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add install target

parent 8c218b16
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ SRC=\
src/*/*/* \
src/*/*/*/*
.PHONY: all clean fmt libc libm test
.PHONY: all clean fmt install libc libm test
all: libc libm
......@@ -31,6 +31,15 @@ clean:
fmt:
./fmt.sh
install: all
mkdir -pv "$(DESTDIR)/lib"
mkdir -pv "$(DESTDIR)/include"
cp -rv "include"/* "$(DESTDIR)/include"
cp -rv "target/include"/* "$(DESTDIR)/include"
cp -v "$(BUILD)/debug/libc.a" "$(DESTDIR)/lib"
cp -v "$(BUILD)/debug/crt0.o" "$(DESTDIR)/lib"
cp -v "$(BUILD)/openlibm/libopenlibm.a" "$(DESTDIR)/lib/libm.a"
libc: $(BUILD)/debug/libc.a $(BUILD)/debug/crt0.o
libm: $(BUILD)/openlibm/libopenlibm.a
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment