diff options
author | Mattias Andrée <maandree@kth.se> | 2021-09-16 18:49:42 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-09-16 18:49:42 +0200 |
commit | 195bfa0749997706198dc36e38614eb2693c17d9 (patch) | |
tree | 57af493b58900810fdee9378de8e92ac5b8b4629 /Makefile | |
parent | Use simple make file, remove info manual, and other crap, change style, use arg.h instead of getopt, and change license (diff) | |
download | unstickpixels-195bfa0749997706198dc36e38614eb2693c17d9.tar.gz unstickpixels-195bfa0749997706198dc36e38614eb2693c17d9.tar.bz2 unstickpixels-195bfa0749997706198dc36e38614eb2693c17d9.tar.xz |
Improve makefile + m style fix + fix warnings3.0.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -3,28 +3,28 @@ CONFIGFILE = config.mk include $(CONFIGFILE) + all: unstickpixels +unstickpixels.o: unstickpixels.c arg.h -unstickpixels: unstickpixels.o - $(CC) -o $@ unstickpixels.o $(LDFLAGS) +.c.o: + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) -unstickpixels.o: unstickpixels.c arg.h +.o: + $(CC) -o $@ $< $(LDFLAGS) 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 + -rm -f -- unstickpixels *.o *.su .SUFFIXES: .SUFFIXES: .o .c |