Fixed #103: symlinks without .bin suffix

This commit is contained in:
Devaev Maxim
2021-04-02 09:01:29 +03:00
parent 3bf68884f5
commit dd6dc866a6
2 changed files with 12 additions and 7 deletions

4
.gitignore vendored
View File

@@ -6,9 +6,11 @@
/pkg/arch/ustreamer-*.pkg.tar.xz /pkg/arch/ustreamer-*.pkg.tar.xz
/pkg/arch/ustreamer-*.pkg.tar.zst /pkg/arch/ustreamer-*.pkg.tar.zst
/src/build/ /src/build/
/src/*.bin
/python/build/ /python/build/
/ustreamer
/ustreamer-dump
/config.mk /config.mk
/vgcore.* /vgcore.*
/*.sock /*.sock
*.so *.so
*.bin

View File

@@ -26,21 +26,22 @@ endef
# ===== # =====
all: all:
+ make apps + make apps
ifneq ($(call optbool,$(WITH_PYTHON)),)
+ make python + make python
else
@ true
endif
apps: apps:
make -C src make -C src
@ ln -sf src/*.bin . @ ln -sf src/ustreamer.bin ustreamer
@ ln -sf src/ustreamer-dump.bin ustreamer-dump
python: python:
ifneq ($(call optbool,$(WITH_PYTHON)),)
make -C python make -C python
@ ln -sf python/build/lib.*/*.so . @ ln -sf python/build/lib.*/*.so .
else
@ true
endif
install: all install: all
@@ -104,9 +105,11 @@ clean-all: linters clean
- docker run --rm \ - docker run --rm \
--volume `pwd`:/src \ --volume `pwd`:/src \
-it $(_LINTERS_IMAGE) bash -c "cd src && rm -rf linters/{.tox,.mypy_cache}" -it $(_LINTERS_IMAGE) bash -c "cd src && rm -rf linters/{.tox,.mypy_cache}"
clean: clean:
rm -rf pkg/arch/pkg pkg/arch/src pkg/arch/v*.tar.gz pkg/arch/ustreamer-*.pkg.tar.{xz,zst} rm -rf pkg/arch/pkg pkg/arch/src pkg/arch/v*.tar.gz pkg/arch/ustreamer-*.pkg.tar.{xz,zst}
rm -f *.bin *.so rm -f ustreamer ustreamer-dump *.so
make -C src clean make -C src clean
make -C python clean make -C python clean