summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile6
2 files changed, 5 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index a8a2858..251321e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
+libhashtable.o
libhashtable.so
diff --git a/Makefile b/Makefile
index 9b86af1..e6d30cd 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,8 @@ CFLAGS=-pedantic -Wall -g3
PREFIX:=/usr/local
TARGET=libhashtable.so
+.PHONY: all clean install uninstall
+
all: $(TARGET)
libhashtable.h:
@@ -19,8 +21,8 @@ clean:
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)