diff options
author | epoch <epoch@hack.thebackupbox.net> | 2020-03-21 12:09:59 +0000 |
---|---|---|
committer | epoch <epoch@hack.thebackupbox.net> | 2020-03-21 12:09:59 +0000 |
commit | d64ce2fd08d0dbd11efc24610a3775c4ff5d6004 (patch) | |
tree | 172ce9d4c137387517110462a30ddf05cad98f3d | |
parent | 68cdf93f9ed722c08e63771e875721d3b0165509 (diff) | |
download | libhashtable-d64ce2fd08d0dbd11efc24610a3775c4ff5d6004.tar.gz libhashtable-d64ce2fd08d0dbd11efc24610a3775c4ff5d6004.zip |
cleaned this Makefile up a bot, PHONYs, simpler install -t
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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) |