aboutsummaryrefslogblamecommitdiffstats
path: root/Makefile
blob: afde4e8ce6e865175676be19b0774d65b0c2694b (plain) (tree)


























                                                                
.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