devops101 › Cheat sheet'ler › 🛠️ Makefile cheat sheet

🛠️ Makefile cheat sheet

Temel

.PHONY: test buildDosya olmayan hedefler
test: npm testHedef (girinti TAB!)
build: test docker build -t app .Bağımlılık
IMG ?= app:latestDeğişken (varsayılan)
@echo "mesaj"@ komutu gizler
make -nKuru çalıştırma
make hedef IMG=app:2Değişken ver
$(MAKE) -C altAlt dizinde make

Uygulamada aç ve alıştırmaları çöz →