commit 4cde3d63d9d92ab45c28bb6d526ee715a86ed104 from: Aleksey Ryndin date: Mon Aug 28 10:05:16 2023 UTC Add `make install` command commit - c7ff3e931a4b1c563059651b296c4f0f674f0cba commit + 4cde3d63d9d92ab45c28bb6d526ee715a86ed104 blob - bf8d53419335d7b548e224c587ce6faa1931b65b blob + 69bd50cfc1aecd54f40ab90568eea2c82144fb52 --- Makefile +++ Makefile @@ -1,4 +1,4 @@ -.PHONY: server clean run_server tests +.PHONY: server clean run_server tests install server: ${MAKE} -C vostok @@ -12,3 +12,6 @@ run_server: server tests: ${MAKE} -C tests + +install: + ${MAKE} -C vostok install blob - 578884b5ab19556c2a0a9a5f37ff01eb6bf91c30 blob + 83054350c7bcd01ca738e4810455fc399ff75232 --- vostok/Makefile +++ vostok/Makefile @@ -19,4 +19,8 @@ vostok: ${OFILES} clean: rm -f ${OFILES} vostok -.PHONY: cleaN +install: + mkdir -p -m 755 $(PREFIX)/bin + install -m 755 vostok $(PREFIX)/bin/vostok + +.PHONY: clean install