Home  >  All Categories  >  Dev  >  Makefile Template

Makefile Template

Common Makefile Template.

.PHONY: start reload stop
start:
	systemctl start caddy
stop:
	systemctl stop caddy
reload:
	systemctl reload caddy

Replace some line🔗

`make set count=5

set:
	@test $(count)
	@sed -i -e '$(LINE)s/.*/      POST_WEIBO_COUNT: $(count)/' docker-compose.yaml
	@echo Change Count to $(count) Success! Now ready to restart!
	docker-compose up -d
Category: Dev 
TagsMakfile
Published:  · Updated:   📝 Edit this page

该博客没有评论系统,我正在实验有意义的讨论是否更易在社群中发生,不知道为什么,人在社群中,似乎会有更好的行为规范。然后如果有高质量的讨论,我会手动再精选到原文。为此,我建立了一个 Telegram 讨论群组,你可以在里面讨论这篇文章,点此复制文章标题和链接