1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-26 00:10:27 +00:00

Don't symlink into $(PREFIX)/lib/janet

Using the AUR installer, this seems to result in
symlinks into the cache, which may be an issue and looks
strange. Instead, we can just copy the file once for
the cook module.
This commit is contained in:
Calvin Rose 2019-05-15 08:46:12 -04:00
parent 9f3dde3cc7
commit 8359044408

View File

@ -283,15 +283,13 @@ install: $(JANET_TARGET) build/version.txt
mkdir -p $(BINDIR) mkdir -p $(BINDIR)
cp $(JANET_TARGET) $(BINDIR)/janet cp $(JANET_TARGET) $(BINDIR)/janet
mkdir -p $(INCLUDEDIR) mkdir -p $(INCLUDEDIR)
cp $(JANET_HEADERS) $(INCLUDEDIR) cp -rf $(JANET_HEADERS) $(INCLUDEDIR)
mkdir -p $(JANET_PATH)
cp -rf $(JANET_HEADERS) $(JANET_PATH)
mkdir -p $(LIBDIR) mkdir -p $(LIBDIR)
cp $(JANET_LIBRARY) $(LIBDIR)/libjanet.so.$(shell cat build/version.txt) cp $(JANET_LIBRARY) $(LIBDIR)/libjanet.so.$(shell cat build/version.txt)
ln -sf $(SONAME) $(LIBDIR)/libjanet.so ln -sf $(SONAME) $(LIBDIR)/libjanet.so
ln -sf libjanet.so.$(shell cat build/version.txt) $(LIBDIR)/$(SONAME) ln -sf libjanet.so.$(shell cat build/version.txt) $(LIBDIR)/$(SONAME)
mkdir -p $(INCLUDEDIR)/janet
mkdir -p $(JANET_PATH)
ln -sf $(INCLUDEDIR)/janet.h $(JANET_PATH)/janet.h
ln -sf $(INCLUDEDIR)/janetconf.h $(JANET_PATH)/janetconf.h
cp tools/cook.janet $(JANET_PATH) cp tools/cook.janet $(JANET_PATH)
cp tools/highlight.janet $(JANET_PATH) cp tools/highlight.janet $(JANET_PATH)
cp tools/bars.janet $(JANET_PATH) cp tools/bars.janet $(JANET_PATH)