summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo Ramos2012-03-11 15:06:55 +0100
committerGuillermo Ramos2012-03-11 15:06:55 +0100
commit931b47a746e90c08e312472292c4781229a34f86 (patch)
tree7f4d08d31df10e78f4da1bb9fa22128668e77849
parent4c0eeddba45e354019cb6cd08ec398bdecfdc9ee (diff)
downloadmjolnir-931b47a746e90c08e312472292c4781229a34f86.tar.gz
[Makefile] Added "install" target and simplified
-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)