aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 1be71aaf65017d16bbf1f51c7c8e2e4d625104ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
PREFIX ?= /usr/local
CC ?= cc

output: someblocks.c blocks.def.h blocks.h
	${CC}  someblocks.c $(LDFLAGS) -o someblocks
blocks.h:
	cp blocks.def.h $@


clean:
	rm -f *.o *.gch someblocks
install: output
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	install -m 0755 someblocks $(DESTDIR)$(PREFIX)/bin/someblocks
uninstall:
	rm -f $(DESTDIR)$(PREFIX)/bin/someblocks