aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 8652733..d0c9a85 100644
--- a/Makefile
+++ b/Makefile
@@ -3,13 +3,14 @@
CONFIGFILE = config.mk
include $(CONFIGFILE)
+
all: slack
slack: slack.o
$(CC) -o $@ slack.o $(LDFLAGS)
slack.o: slack.c arg.h
- $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
+ $(CC) -c -o $@ slack.c $(CFLAGS) $(CPPFLAGS)
check:
test $$(./slack 1ms ./slack get) = 1ms
@@ -27,18 +28,15 @@ check:
install: slack
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1"
- mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/slack"
cp -- slack "$(DESTDIR)$(PREFIX)/bin/"
cp -- slack.1 "$(DESTDIR)$(MANPREFIX)/man1/"
- cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/slack"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/bin/slack"
-rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/slack.1"
- -rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/slack"
clean:
- -rm -f -- slack *.o
+ -rm -f -- slack *.o *.su
.SUFFIXES: