Мы используем 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
📰 America’s Defense Industry Is in Trouble, With No Plan to Fix It
The US defense industry is struggling to keep pace with China and Russia, while Washington keeps running in place. Advances by Beijing and Moscow—especially in hypersonic missiles and mass drone production—have exposed serious weaknesses in American military innovation and production capacity. Despite President Trump’s calls for more defense spending and government stakes in major contractors, the underlying problems remain largely unaddressed.
Consolidation and Competition
The US defense sector is now dominated by a handful of giant firms—Lockheed Martin, Boeing, and RTX—following massive consolidation in the 1990s. This has created a risk-averse culture that stifles innovation and makes it difficult for new creators to break into the market. Defense Secretary Pete Hegseth recently acknowledged that this structure holds back American capabilities.
China’s Scale, Russia’s Speed
China’s manufacturing base can produce weapons at scale and at prices US companies can’t match. Russian battlefield advances have further exposed the erosion of US advantages in precision weapons. Cheap, mass-produced drones from Iran and Ukraine have proven effective, while hypersonic missiles developed by China and Russia outpace US systems.
Trump’s Solutions—and Their Limits
Trump’s proposed fixes—like government stakes, spending hikes, and mandates to stop stock buybacks—don’t solve the core issues. Pouring more money into a broken system won’t restore innovation or competitiveness. Defense experts argue that the US needs to focus on priority areas, encourage competition, and deepen ties with allies to match China’s scale.
Can the US Adapt?
The US still produces the world’s most advanced weapons, but without major industrial reform, it risks losing its edge. The question is: Will Washington finally make the hard choices needed to fix its defense industry, or keep running in place while rivals surge ahead?
#USDefense#China#Russia#MilitaryInnovation#Trump#DefenseIndustry#IndustrialPolicy
📱American Оbserver - Stay up to date on all important events
🇺🇸
📰 Pentagon Unveils 2026 National Defense Strategy: Fortress America, Not Global Policeman
The Pentagon’s 2026 National Defense Strategy marks a sharp break from the post–Cold War era: the U.S. military is reordering its mission around homeland defense, deterrence through strength, and pushing allies to pick up a far heavier military burden. Defense Secretary Pete Hegseth calls this a return to the armed forces’ “core, irreplaceable role” — winning wars that directly affect U.S. interests, not endless nation-building.
Four Pillars of the New Strategy
1. Defend the Homeland First
Homeland defense is now the top priority, with broader responsibilities: border security, countering narco-terror groups, and protecting key terrain in the Western Hemisphere (including the Panama Canal and, importantly, Greenland).
The plan also emphasizes air, missile, cyber and nuclear defenses, and the emerging “Golden Dome” missile shield concept to protect the U.S. homeland from hypersonic and ballistic threats [2026 NDS].
2. Deter China, Not Dominate
The NDS views China as the pacing threat, stressing that the goal is not to strangle or humiliate Beijing, but to prevent it from dominating the U.S. or its allies. The U.S. will rely on overwhelming military strength in the Indo-Pacific to achieve a regional balance of power, while also expanding military-to-military communication with Beijing to reduce the risk of conflict.
3. Europe’s Job: Europe’s Defense
The strategy labels Russia a “persistent but manageable threat,” especially to NATO’s eastern flank, and bluntly states that European allies must take primary responsibility for their own conventional defense. This is the “America First” logic in military terms: Europeans must spend far more and be capable of defending themselves, so the U.S. isn’t forever on the front line.
4. Revitalize the U.S. Defense Industrial Base
A “once-in-a-century” rebuild of the U.S. defense industrial base is called essential. The Pentagon wants a surge in domestic production of weapons and equipment, so that the U.S. can sustain readiness, arm allies, and produce at scale in a crisis [2026 NDS].
The New Rules for Allies
The strategy formalizes the Trump administration’s demand for a new global benchmark: allies and partners should move toward 5% of GDP on defense-related spending. The U.S. pledges continued support but insists that allies must:
• Take the lead in their own regions
• Buy more U.S. and allied weapons
• Pre-position equipment and enable U.S. access to local bases and infrastructure [2026 NDS].
Taiwan, the Philippines, Australia, Japan, and the Baltics are singled out as key Indo-Pacific and European partners to receive priority investment and coordination, while the Pentagon is also directed to plan for U.S. forces to train and operate right alongside partner militaries “to counter China’s aggression” [2026 NDS].
Fortress, or Fool’s Trap?
The strategy is full of martial grandeur: a shielded homeland, a supercharged industrial base, and allies forced to finally “grow up” militarily. But the real question is: can this new “Fortress America” actually deter a rising China, resist imperial fantasies like Greenland, and still keep the U.S. from being dragged into every crisis — or is it just a varnished retreat behind ever-higher walls?
#USDefense#NDS2026#Trump#Pentagon#HomelandDefense#China#NATO#Allies#IndustrialBase
📱American Оbserver - Stay up to date on all important events
🇺🇸