tSource ~/.profile and fix uninstallation with posix make - watch - minimalist … | |
git clone git://src.adamsgaard.dk/watch | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 157a22416e038df9daf82fe04ea83adc0958840a | |
parent 0e4478bab18c9c1c6ce7412114b43da35f06ba44 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 21 Nov 2019 16:34:47 +0100 | |
Source ~/.profile and fix uninstallation with posix make | |
Diffstat: | |
M Makefile | 4 ++-- | |
M watch.c | 2 +- | |
2 files changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
t@@ -1,7 +1,7 @@ | |
CFLAGS = -g -std=c99 -pedantic -Wall | |
LDFLAGS = -lm | |
OBJ = watch.o | |
-BIN = ./watch | |
+BIN = watch | |
PREFIX ?= ~/.local | |
INSTALL ?= install | |
t@@ -18,7 +18,7 @@ install: $(BIN) | |
$(INSTALL) -m 0755 $(BIN) $(DESTDIR)$(PREFIX)/bin | |
uninstall: | |
- $(RM) $(DESTDIR)$(PREFIX)/bin/$(BIN) | |
+ rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) | |
memtest: $(BIN) | |
valgrind --error-exitcode=1 --leak-check=full $(BIN) -h | |
diff --git a/watch.c b/watch.c | |
t@@ -115,7 +115,7 @@ main(int argc, char* argv[]) | |
if ((command = malloc(512)) != NULL) { | |
command[0] = '\0'; | |
- strcat(command, "[ -f ~/.config/sh/commands ] && . ~/.config/s… | |
+ strcat(command, "[ -f ~/.profile ] && . ~/.profile "); | |
for (i=optind; i<argc; ++i) { | |
strcat(command, argv[i]); | |
if (i < argc-1) |