From: Alan Cox Date: Thu, 3 Mar 2016 13:43:45 +0000 (+0000) Subject: Library: Add an install to put the headers in the right place X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ea59b8e70f17a9dd7286a12b4d0639fa0daabf34;p=FUZIX.git Library: Add an install to put the headers in the right place --- diff --git a/Library/Makefile b/Library/Makefile index a28dcbed..6f1217ba 100644 --- a/Library/Makefile +++ b/Library/Makefile @@ -26,3 +26,17 @@ tools/binman: tools/binman.c tools/liberror: tools/liberror.c $(CC) $(CFLAGS) -o $@ $< + +install: + mkdir -p /opt/fcc/bin /opt/fcc/lib /opt/fcc/include + mkdir -p /opt/fcc/include/6502 /opt/fcc/include/arpa + mkdir -p /opt/fcc/include/msp430x /opt/fcc/include/netinet + mkdir -p /opt/fcc/include/sys + install -m 0755 tools/binman tools/fcc /opt/fcc/bin + install -m 0644 include/*.h /opt/fcc/include + install -m 0644 include/6502/*.h /opt/fcc/include/6502 + install -m 0644 include/arpa/*.h /opt/fcc/include/arpa + install -m 0644 include/msp430x/*.h /opt/fcc/include/msp430x + install -m 0644 include/netinet/*.h /opt/fcc/include/netinet + install -m 0644 include/sys/*.h /opt/fcc/include/sys + install -m 0644 ../Kernel/include/userstructs.h /opt/fcc/include/sys/