aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Liodden <[email protected]>2017-12-04 13:21:02 +0100
committerErik Liodden <[email protected]>2017-12-04 13:21:02 +0100
commit7f7d2dc352fa7ddebec8337ba4e53b7a1f3822fc (patch)
tree010a3cf8aaf714372ed3c66c7594e9501af5d147
parentd2ce85a97e4282a216ccd503b519174761ccd1e2 (diff)
downloadalgdat-7f7d2dc352fa7ddebec8337ba4e53b7a1f3822fc.tar.gz
add make reinstall
this will first uninstall then install. as expected.
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e4843af..7f674b3 100644
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ $(LIB_FILE): $(LIB_OBJS)
@$(CC) $(CFLAGS) -o [email protected] -c $<
.PHONY:
- clean install uninstall
+ clean install uninstall reinstall
install: lib
cp $(LIB_FILE) $(LIB_PATH)
@@ -44,6 +44,8 @@ uninstall:
rm -rf $(LIB_H_PATH)
rm -f $(LIB_PATH)/$(LIB_FILE)
+reinstall: uninstall install
+
clean:
rm -rf *.o $(PROG) $(LIB_FILE) *.dSYM test