How To Make A Rule Install For Makefile

[Solved] How To Make A Rule Install For Makefile | Shell - Code Explorer | yomemimo.com
Question : how to make a rule install for makefile

Answered by : kind-kestrel-kw7h0f3xa9e8

PREFIX = /usr/local
.PHONY: install
install: mygame mkdir -p $(DESTDIR)$(PREFIX)/bin cp $< $(DESTDIR)$(PREFIX)/bin/mygame
.PHONY: uninstall
uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/mygame

Source : http://nuclear.mutantstargoat.com/articles/make/#writing-install-uninstall-rules | Last Update : Mon, 08 Feb 21

Answers related to how to make a rule install for makefile

Code Explorer Popular Question For Shell