From 949be62a369f0a9eb0ad9d54d4b40c104e61a4cc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 6 Jan 2018 09:24:37 +0100 Subject: Simplify and remove all features MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..afde4e8 --- /dev/null +++ b/Makefile @@ -0,0 +1,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 -- cgit v1.2.3-70-g09d2