aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: afde4e8ce6e865175676be19b0774d65b0c2694b (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
.POSIX:

CONFIGFILE = config.mk
include $(CONFIGFILE)

all: xcman

install: xcman
	mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
	mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1"
	mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/xcman"
	cp -- xcman "$(DESTDIR)$(PREFIX)/bin"
	cp -- xcman.1 "$(DESTDIR)$(MANPREFIX)/man1"
	cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/xcman"

uninstall:
	-rm -f -- "$(DESTDIR)$(PREFIX)/bin/xcman"
	-rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/xcman.1"
	-rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/xcman"

clean:
	-rm -f -- xcman

.SUFFIXES:
.SUFFIXES: .c

.PHONY: all install uninstall clean