blob: 54a0a31adb0d8073c29277aa8576826f8661ba7c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
.POSIX:
CONFIGFILE = config.mk
include $(CONFIGFILE)
all: unstickpixels
unstickpixels: unstickpixels.o
$(CC) -o $@ unstickpixels.o $(LDFLAGS)
unstickpixels.o: unstickpixels.c arg.h
install: unstickpixels
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin/"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/"
mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/unstickpixels"
cp -- unstickpixels "$(DESTDIR)$(PREFIX)/bin/"
cp -- unstickpixels.1 "$(DESTDIR)$(MANPREFIX)/man1/"
cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/unstickpixels"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/bin/unstickpixels"
-rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/unstickpixels.1"
-rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/unstickpixels"
clean:
-rm -f -- unstickpixels *.o
.SUFFIXES:
.SUFFIXES: .o .c
.PHONY: all install uninstall clean
|