diff options
author | Mattias Andrée <maandree@kth.se> | 2017-12-10 19:54:51 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-12-10 19:54:57 +0100 |
commit | 0a007bb2804137ae53790cf9b56bdfd587082e23 (patch) | |
tree | 6e0b44777cc77d89b27718d3381a0ed138af725a /Makefile | |
parent | remove dist (diff) | |
download | unstickpixels-0a007bb2804137ae53790cf9b56bdfd587082e23.tar.gz unstickpixels-0a007bb2804137ae53790cf9b56bdfd587082e23.tar.bz2 unstickpixels-0a007bb2804137ae53790cf9b56bdfd587082e23.tar.xz |
Use simple make file, remove info manual, and other crap, change style, use arg.h instead of getopt, and change license3
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
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 |