mirror of
https://github.com/janet-lang/janet
synced 2024-12-24 23:40:27 +00:00
Add Make task to more easily install jpm.
This commit is contained in:
parent
9909adb665
commit
31a7fdc7b6
11
Makefile
11
Makefile
@ -281,6 +281,17 @@ install: $(JANET_TARGET) $(JANET_LIBRARY) $(JANET_STATIC_LIBRARY) build/janet.pc
|
||||
cp build/janet.pc '$(DESTDIR)$(JANET_PKG_CONFIG_PATH)/janet.pc'
|
||||
[ -z '$(DESTDIR)' ] && $(LDCONFIG) || true
|
||||
|
||||
install-jpm-git: $(JANET_TARGET)
|
||||
mkdir -p build
|
||||
rm -rf build/jpm
|
||||
git clone --depth=1 https://github.com/janet-lang/jpm.git build/jpm
|
||||
cd build/jpm && PREFIX='$(DESTDIR)$(PREFIX)' \
|
||||
JANET_MANPATH='$(DESTDIR)$(JANET_MANPATH)' \
|
||||
JANET_HEADERPATH='$(DESTDIR)$(INCLUDEDIR)/janet' \
|
||||
JANET_BINPATH='$(DESTDIR)$(BINDIR)' \
|
||||
JANET_LIBPATH='$(DESTDIR)$(LIBDIR)' \
|
||||
../../$(JANET_TARGET) ./bootstrap.janet
|
||||
|
||||
uninstall:
|
||||
-rm '$(DESTDIR)$(BINDIR)/janet'
|
||||
-rm -rf '$(DESTDIR)$(INCLUDEDIR)/janet'
|
||||
|
@ -3,6 +3,7 @@
|
||||
[![Appveyor Status](https://ci.appveyor.com/api/projects/status/bjraxrxexmt3sxyv/branch/master?svg=true)](https://ci.appveyor.com/project/bakpakin/janet/branch/master)
|
||||
[![builds.sr.ht status](https://builds.sr.ht/~bakpakin/janet/commits/freebsd.yml.svg)](https://builds.sr.ht/~bakpakin/janet/commits/freebsd.yml?)
|
||||
[![builds.sr.ht status](https://builds.sr.ht/~bakpakin/janet/commits/openbsd.yml.svg)](https://builds.sr.ht/~bakpakin/janet/commits/openbsd.yml?)
|
||||
[![Actions Status](https://github.com/janet-lang/janet/actions/workflows/test.yml/badge.svg)](https://github.com/janet-lang/janet/actions/workflows/test.yml)
|
||||
|
||||
<img src="https://raw.githubusercontent.com/janet-lang/janet/master/assets/janet-w200.png" alt="Janet logo" width=200 align="left">
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user