summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6d8f67e6607a540a809cc3c5e70ac47f46b06251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# ~\~ language=Make filename=Makefile
# ~\~ begin <<rccat.md|Makefile>>[0]
PREFIX ?= /usr/local
INSTALL ?= install
INSTALL_PROGRAM ?= $(INSTALL)

# ~\~ begin <<rccat.md|make-all>>[0]
all: build
# ~\~ end
# ~\~ begin <<rccat.md|make-build>>[0]
build:
	$(CC) -o rccat rccat.c
# ~\~ end
# ~\~ begin <<rccat.md|make-clean>>[0]
clean:
	$(RM) rccat
# ~\~ end
# ~\~ begin <<rccat.md|make-install>>[0]
install:
	$(INSTALL_PROGRAM) -d $(PREFIX)/bin
	$(INSTALL_PROGRAM) -m755 rccat $(PREFIX)/bin
# ~\~ end
# ~\~ begin <<rccat.md|make-uninstall>>[0]
uninstall:
	$(RM) $(PREFIX)/bin/rccat
# ~\~ end
# ~\~ end