commit aa33a4bcaf1c239566bed884f35308b77d98ca61 from: Benjamin Stürz date: Mon Nov 11 00:15:35 2024 UTC make: add `install` rule commit - a7cc7c85df720cd9c5037110047b86db30f7246a commit + aa33a4bcaf1c239566bed884f35308b77d98ca61 blob - 173e3c310bc0b7078fd8fa940b99e7fd6716f771 blob + b140f120cbc92d105ddc893e9a468b23bce4e55d --- make/MyMakefile +++ make/MyMakefile @@ -1,7 +1,12 @@ +PREFIX ?= /usr CFLAGS = -g -O0 -ansi -Wall -Wno-deprecated-non-prototype -Wno-comment -Wno-implicit-int all: make +install: make + mkdir -p ${DESTDIR}${PREFIX}/bin + cp -f make ${DESTDIR}${PREFIX}/bin/ + clean: rm -f make *.core blob - e586848dd0c138dda05510ca680c99724ea9e763 blob + cee2108024a52034fa39f930cd96db0e6fcb714a --- make/TODO +++ make/TODO @@ -1,6 +1,5 @@ - write a useful README about how this make differs from all the other makes - options: -q, -k -- make MACRO=VALUE - make this work: === MyMakefile CFLAGS = -ansi