Skip to content

Commit

Permalink
make install
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinhard Urban committed Feb 16, 2023
1 parent 9edf93e commit 161c479
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ test-stage2: $(TESTS:test/%=stage2/test/%)

# Misc.

install:
test -d /usr/local/include/x86_64-linux-gnu/chibicc || \
sudo mkdir -p /usr/local/include/x86_64-linux-gnu/chibicc
sudo cp include/* /usr/local/include/x86_64-linux-gnu/chibicc/
sudo cp chibicc /usr/local/bin/chibicc

clean:
rm -rf chibicc tmp* $(TESTS) test/*.s test/*.exe stage2
find * -type f '(' -name '*~' -o -name '*.o' ')' -exec rm {} ';'
Expand Down

0 comments on commit 161c479

Please sign in to comment.