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
2021-10-28 17:27:05 +02:00

16 lines
353 B
Makefile

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