Мы используем Makefile думая, что нет альтернатив, что это стандарт и всё такое.
Но make это не запускалка команд, а система сборки. Мы фактически используем его не по назначению.
И на самом деле альтернатива есть! Некоторое время назад я открыл для себя прекрасный инструмент - just. Он решает все проблемы make.
just - это не система сборки как make, это именно исполнитель команд!
Больше никаких Phony Targets и табуляций, привет нормальный синтаксис и передача аргументов!!! 😎
⭐️Что умеет just:
✅ Автодокументирование команд
Не нужно делать отдельную команду с докой, просто добавь комментарий
# команда сборки
build:
...
$ just --list
Available recipes:
build # команда сборки
Команда с именем default запускается по умолчанию если не указано другое, так что я обычно делаю так:
default:
just --list
Теперь просто выполняем just и получаем доку из текущего файла.
✅ Удобная работа с переменными окружения
# загрузить из .env
set dotenv-load
# глобальная переменная
export PYTHONPATH := "./src"
# переменная для команды
test $TESTUNG="true":
pytest
✅ Передача аргументов
build target:
@echo 'Build {{target}}...'
команда запуска
$ just build dev
# Build dev...
✅ Выбор интерпретатора прямо в команде
Пример с инлайн-скриптом на python:
system:
#!/usr/bin/env python3
import platform
print(platform.system())
Эта же функция позволит выполнить скрипт как одну команду вместо перезапуска шела для каждой строки
foo:
#!/usr/bin/env sh
for file in ls .; do
echo $file
done
✅ Выполнение команды в определенной директории. Можно указать как релятивный путь так и абсолютный
[working-directory: 'backend']
build:
docker compose build
Также можно задать рабочую директорию глобально
Там еще много интересного:
- поддержка функций
- автокомплиты и интеграции
- экспрешены
- алиасы команд
- группировка команд
- альтернативы команды под разные ОС
- импорт других just-файлов
- цветной вывод
- ... и другие штуковины!
Так что вперёд - ➡️ читать доку!
Репозиторий: ➡️https://github.com/casey/just
Статья: ➡️https://www.chicks.net/reference/file_formats/just/
ЗЫ. Кажется, на Makefile я уже не вернусь)
#tools
¡New build available!
#A14#RisingOS
Xiaomi 12T Pro / Redmi K50 Ultra (diting)
Maintainer:@TeamMEX_XDA (Kισżż)
Version:5.2.1-Lyonesse
Download | Changelogs | Screenshots
Device Changelog:
◦ Enable Updater app
◦ Enable Lawnchair and Pixel launcher
◦ fix ims crash (?)
◦ improve system performance
◦ more bugfixes
◦ Enable visual eq on dolby
'#risinginyourarea' '#UDC'
If you like my work and want to support it please consider making a donation this helps with server costs.
Donate PayPal
¡New build available!
#A14#RisingOS
Xiaomi 12T Pro / Redmi K50 Ultra (diting)
Maintainer:@TeamMEX_XDA (Kισżż)
Version:5.1-Lyonesse
Download | Changelogs | Screenshots
Device Changelog:
◦ Sync with last rising 5.1 source
◦ Update Yuki kernel
'#risinginyourarea' '#UDC'
If you like my work and want to support it please consider making a donation this helps with server costs.
Donate PayPal
¡New build available!
#A14#RisingOS
Xiaomi 12T Pro / Redmi K50 Ultra (diting)
Maintainer:@TeamMEX_XDA (Kισżż)
Version:5.0-Lyonesse
Download | Changelogs | Screenshots
Device Changelog:
◦ Fix some sensor issues
◦ Last source from rising
◦ update spoof from settings to pass strong
'#risinginyourarea' '#UDC'
If you like my work and want to support it please consider making a donation this helps with server costs.
Donate PayPal
¡New build available!
#A14#RisingOS
Xiaomi 12T Pro / Redmi K50 Ultra (diting)
Maintainer:@TeamMEX_XDA (Kισżż)
Version:5.0-Lyonesse
Download | Changelogs | Screenshots
Device Changelog:
◦ Enable Updater app
◦ Enable Lawnchair and Pixel launcher
◦ fix ims crash (?)
◦ improve system performance
◦ more bugfixes
◦ Enable visual eq on dolby
'#risinginyourarea' '#UDC'
If you like my work and want to support it please consider making a donation this helps with server costs.
Donate PayPal
Follow@xiaomi_12tpro_updates
Join@xiaomi12tpro_chat
RisingOS - Community | A14 | Nothing Phone (2)
📔 Details:
- Version: 4.2 (Kailash)
- Codename: #Pong
- Released: 02/08/2024
🔽 Download (Recovery) : Vanilla | Gapps
⚙️ Installation: Here
📸 Screenshots: Here | Here
🔄 Source Changelog: Here
💵 Donate: Paypal | UPI: samrth012@okaxis
🆘 Support: Telegram
🔖 Tags : #ROM#AOSP#Community#RisingOS#QPR3#U#NothingPhone2
✍️ Note:
- Rebased trees
- Padding Can be adjusted from Settings
- Use this pif.json in settings for passing play integrity
- Kernel is prepatched with KSU
- Dolby Atmos Included
- Unlimited Google Photos Spoof Available..
- Clean flashing is mandatory (v4.0 users can dirty flash)
‼️ Known Bugs:
- (You tell.. I fix.. 🤝)
🏆 Credits
- Chandu for base device tree & Kernel
- AgbKartik for help
- Hellboy for Dolby
- Fabian for PA Glyph Implementation
- Testing team
😎 Maintainer: @samrth012
🔔 Updates: @NothingPhone2Updates
💬 Chat: @NothingPhone2
RisingOS - Community | A14 | Nothing Phone (2)
📔 Details:
- Version: 4.1 (Kailash)
- Codename: #Pong
- Released: 29/07/2024
🔽 Download (Recovery) : Vanilla | Gapps
⚙️ Installation: Here
📸 Screenshots: Here | Here | Here
🔄 Source Changelog: Here
🆘 Support: Telegram
🔖 Tags : #ROM#AOSP#Community#RisingOS#QPR3#U#NothingPhone2
✍️ Note:
- Padding Can be adjusted from Settings
- BCR Included
- Kernel is prepatched with KSU (Download Manager)
- Dolby Atmos Included
- Unlimited Google Photos Spoof Available..
- Clean flashing is mandatory (v4.0 users can dirty flash)
- NO OTA's
‼️ Known Bugs:
- None (You tell.. I fix.. 🤝)
🏆 Credits
- Chandu for base device tree & Kernel
- OC'D, Miki, Unluck & Ghost for all help
- Hellboy for Dolby
- Fabian for PA Glyph Implementation
- EverRising for Testing
😎 Maintainer: @samrth012
🔔 Updates: @NothingPhone2Updates
💬 Chat: @NothingPhone2
RisingOS - Community | A14 | Nothing Phone (2)
📔 Details:
- Version: 4.0 (Kailash)
- Codename: #Pong
- Released: 23/07/2024
🔽 Download (Recovery) : Vanilla | Gapps
⚙️ Installation: Here
📸 Screenshots: Here
🆘 Support: Telegram
🔖 Tags : #ROM#AOSP#Community#RisingOS#QPR3#U#NothingPhone2
✍️ Note:
- Padding Can be adjusted from Settings
- BCR Included
- Kernel is prepatched with KSU (Download Manager)
- Dolby Atmos Included
- Unlimited Google Photos Spoof Available..
- Clean flashing is mandatory
- Sam is Working on OTA.. Might Get OTA Updates with Next Release..
‼️ Known Bugs:
- None (You tell.. I fix.. 🤝)
🏆 Credits
- Chandu for base device tree & Kernel
- OC'D, Miki, Unluck & Ghost for all help
- Hellboy for Dolby
- Fabian for PA Glyph Implementation
- EverRising for Testing
😎 Maintainers: @samrth012
🔔 Updates: @NothingPhone2Updates
💬 Chat: @NothingPhone2