aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: df9d73f6ff70f095c669d08a2ccd5d6905230a45 (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.o: unstickpixels.c arg.h

.c.o:
	$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)

.o:
	$(CC) -o $@ $< $(LDFLAGS)

install: unstickpixels
	mkdir -p -- "$(DESTDIR)$(PREFIX)/bin/"
	mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/"
	cp -- unstickpixels "$(DESTDIR)$(PREFIX)/bin/"
	cp -- unstickpixels.1 "$(DESTDIR)$(MANPREFIX)/man1/"

uninstall:
	-rm -f -- "$(DESTDIR)$(PREFIX)/bin/unstickpixels"
	-rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/unstickpixels.1"

clean:
	-rm -f -- unstickpixels *.o *.su

.SUFFIXES:
.SUFFIXES: .o .c

.PHONY: all install uninstall clean