From d64ce2fd08d0dbd11efc24610a3775c4ff5d6004 Mon Sep 17 00:00:00 2001 From: epoch Date: Sat, 21 Mar 2020 12:09:59 +0000 Subject: cleaned this Makefile up a bot, PHONYs, simpler install -t --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 25fb69d..627a926 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ CFLAGS=-fpic -shared -pedantic -Wall -g3 PREFIX:=/usr/local TARGET=libhashtable.so +.PHONY: all clean install uninstall + all: $(TARGET) libhashtable.h: @@ -15,11 +17,11 @@ clean: rm -f libhashtable.so rm *.o -install: +install: all mkdir -p $(PREFIX)/lib mkdir -p $(PREFIX)/include - install $(TARGET) $(PREFIX)/lib/$(TARGET) - install hashtable.h $(PREFIX)/include/hashtable.h + install -t $(PREFIX)/lib $(TARGET) + install -t $(PREFIX)/include hashtable.h uninstall: rm $(PREFIX)/lib/$(TARGET) -- cgit v1.2.3 From b7529998c9a4f68fd797becbba8623266025d728 Mon Sep 17 00:00:00 2001 From: epoch Date: Sat, 21 Mar 2020 12:11:16 +0000 Subject: added the .o to the .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index a8a2858..251321e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +libhashtable.o libhashtable.so -- cgit v1.2.3