summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8d48a4d2f6e1befaa6cf5921790097c44eddc422 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CC = gcc
NAME = int2bin
PREFIX=/usr/local

$(NAME): $(NAME).o
	$(CC) -o $(NAME) $(NAME).o

$(NAME).o: $(NAME).c

.PHONY: clean
clean:
	rm -f *.o
	rm -f $(NAME)

.PHONY: install
install:
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	cp $(NAME) $(DESTDIR)$(PREFIX)/bin/$(NAME)

.PHONY: uninstall
uninstall:
	rm -f $(DESTDIR)$(PREFIX)/bin/$(NAME)