>> 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

📝 Edit this page🔗

Response🔗

Have you written a response to this? Let me know the URL, Or, you can send your response via mail owen@owenyoung.com