build: add static and shared targets to Makefile
This commit is contained in:
parent
9be3e2bdd8
commit
1a0868c487
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
|
@ -75,6 +75,10 @@ tree-sitter.pc: lib/tree-sitter.pc.in
|
|||
-e 's|@PROJECT_HOMEPAGE_URL@|$(HOMEPAGE_URL)|' \
|
||||
-e 's|@CMAKE_INSTALL_PREFIX@|$(PREFIX)|' $< > $@
|
||||
|
||||
shared: libtree-sitter.$(SOEXT)
|
||||
|
||||
static: libtree-sitter.a
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJ) tree-sitter.pc libtree-sitter.a libtree-sitter.$(SOEXT) libtree-stitter.dll.a
|
||||
|
||||
|
|
@ -102,7 +106,7 @@ uninstall:
|
|||
'$(DESTDIR)$(PCLIBDIR)'/tree-sitter.pc
|
||||
rmdir '$(DESTDIR)$(INCLUDEDIR)'/tree_sitter
|
||||
|
||||
.PHONY: all install uninstall clean
|
||||
.PHONY: all shared static install uninstall clean
|
||||
|
||||
|
||||
##### Dev targets #####
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue