>> Home / Dev /

Makefile Template

Published: Β· Updated: Β· Reading Time: 1 min

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

ResponseπŸ”—

Have you written a response to this? Let me know the article or tweet URL (Article or tweet content needs to include the URL of this article, learn more about webmention here).

The response will be automatically collected by webmention.io bot, and another bot will automatically post it here within 24 hours, I wrote an article about how to achieve this. You can also send your response via mail owen@owenyoung.com or Twitter DM