diff options
| author | Jan Sucan <jan@jansucan.com> | 2024-02-02 16:19:19 +0100 |
|---|---|---|
| committer | Ján Sučan <jan@jansucan.com> | 2024-02-02 16:38:53 +0100 |
| commit | 394e79abed3b8a3675c9efb3d448f727c2db45d6 (patch) | |
| tree | 51db726cdb7922cebb641ea2b084e166c570a91b | |
| parent | 6bef1c8b6da3404693e2aea473824a6f33cdbde6 (diff) | |
makefile: Add install and uninstall targets
| -rw-r--r-- | Makefile | 8 | ||||
| -rw-r--r-- | config.mk | 2 |
2 files changed, 10 insertions, 0 deletions
@@ -10,3 +10,11 @@ test: all clean: $(MAKE) -C src clean + +install: all + mkdir -p ${DESTDIR}${PREFIX}/bin + cp -f src/diff-dd ${DESTDIR}${PREFIX}/bin + chmod 755 ${DESTDIR}${PREFIX}/bin/diff-dd + +uninstall: + rm -f ${DESTDIR}${PREFIX}/bin/diff-dd @@ -1,5 +1,7 @@ PROGRAM_NAME = diff-dd PROGRAM_VERSION = 2.0.0 +PREFIX = /usr/local + CC=g++ CFLAGS=-Wall -Wextra -Werror -std=c++11 |
