From 0a007bb2804137ae53790cf9b56bdfd587082e23 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 10 Dec 2017 19:54:51 +0100 Subject: Use simple make file, remove info manual, and other crap, change style, use arg.h instead of getopt, and change license MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..54a0a31 --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +.POSIX: + +CONFIGFILE = config.mk +include $(CONFIGFILE) + +all: unstickpixels + +unstickpixels: unstickpixels.o + $(CC) -o $@ unstickpixels.o $(LDFLAGS) + +unstickpixels.o: unstickpixels.c arg.h + +install: unstickpixels + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin/" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/" + mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/unstickpixels" + cp -- unstickpixels "$(DESTDIR)$(PREFIX)/bin/" + cp -- unstickpixels.1 "$(DESTDIR)$(MANPREFIX)/man1/" + cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/unstickpixels" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/unstickpixels" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/unstickpixels.1" + -rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/unstickpixels" + +clean: + -rm -f -- unstickpixels *.o + +.SUFFIXES: +.SUFFIXES: .o .c + +.PHONY: all install uninstall clean -- cgit v1.2.3-70-g09d2