diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 27 | 
1 files changed, 27 insertions, 0 deletions
| 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 | 
