aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-16 18:45:22 +0200
committerMattias Andrée <maandree@kth.se>2021-09-16 18:45:22 +0200
commita3ddd87ec2e8d7165d28c5f8236b4547a3742abe (patch)
treeb83d5d39244bb3f3bf2c34eb08cf96863d8af427 /Makefile
parentFix readme (diff)
downloadslack-3.0.2.tar.gz
slack-3.0.2.tar.bz2
slack-3.0.2.tar.xz
Imrpove makefile + add missing , in README + m whitespace fix3.0.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-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: