aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-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