summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 57823d1..02cac6f 100644
--- a/Makefile
+++ b/Makefile
@@ -3,16 +3,14 @@ CFLAGS = -Wall -Wextra -std=c99 -pedantic -O3
LDFLAGS = -lm
OBJECTS = mjolnir.o
TARGET = mjolnir
+PREFIX = /usr/local/bin
release: $(TARGET)
-%.o: %.c
- $(CC) -c $(CFLAGS) $<
-
-$(TARGET): $(OBJECTS)
-
install: release
- echo "Installing... (not implemented)"
+ mkdir -p $(PREFIX)
+ cp $(TARGET) $(PREFIX)/$(TARGET)
+ chmod 755 $(PREFIX)/$(TARGET)
clean:
rm -f *.o *~ core tags $(TARGET)