2020-03-02 13:36:26 +01:00
|
|
|
PREFIX ?= /usr/local
|
2022-04-20 22:22:07 +02:00
|
|
|
MANPREFIX ?= $(PREFIX)/share/man
|
2020-08-19 18:12:37 +02:00
|
|
|
CC ?= cc
|
2020-08-12 04:50:11 +02:00
|
|
|
|
2021-10-28 17:27:05 +02:00
|
|
|
output: someblocks.c blocks.def.h blocks.h
|
|
|
|
${CC} someblocks.c $(LDFLAGS) -o someblocks
|
2020-08-12 04:50:11 +02:00
|
|
|
blocks.h:
|
|
|
|
cp blocks.def.h $@
|
|
|
|
|
|
|
|
|
2019-03-24 23:31:05 +01:00
|
|
|
clean:
|
2021-10-28 17:27:05 +02:00
|
|
|
rm -f *.o *.gch someblocks
|
2019-03-27 01:32:08 +01:00
|
|
|
install: output
|
2020-03-02 13:36:26 +01:00
|
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
2021-10-28 17:27:05 +02:00
|
|
|
install -m 0755 someblocks $(DESTDIR)$(PREFIX)/bin/someblocks
|
2022-04-20 22:22:07 +02:00
|
|
|
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
|
|
|
install -m 0644 someblocks.1 $(DESTDIR)$(MANPREFIX)/man1/someblocks.1
|
2020-03-02 13:42:26 +01:00
|
|
|
uninstall:
|
2021-10-28 17:27:05 +02:00
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/someblocks
|
2022-04-20 22:22:07 +02:00
|
|
|
rm -f $(DESTDIR)$(MANPREFIX)/man1/someblocks.1
|