This repository has been archived on 2024-02-29. You can view files and clone it, but cannot push or open issues or pull requests.
someblocks/Makefile

21 lines
543 B
Makefile
Raw Normal View History

2020-03-02 13:36:26 +01:00
PREFIX ?= /usr/local
2022-04-20 22:22:07 +02:00
MANPREFIX ?= $(PREFIX)/share/man
CC ?= cc
2021-10-28 17:27:05 +02:00
output: someblocks.c blocks.def.h blocks.h
${CC} someblocks.c $(LDFLAGS) -o someblocks
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
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