aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-16 18:49:42 +0200
committerMattias Andrée <maandree@kth.se>2021-09-16 18:49:42 +0200
commit195bfa0749997706198dc36e38614eb2693c17d9 (patch)
tree57af493b58900810fdee9378de8e92ac5b8b4629 /Makefile
parentUse simple make file, remove info manual, and other crap, change style, use arg.h instead of getopt, and change license (diff)
downloadunstickpixels-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--Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 54a0a31..df9d73f 100644
--- a/Makefile
+++ b/Makefile
@@ -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