about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 85fbc84..c9ddf66 100644
--- a/Makefile
+++ b/Makefile
@@ -28,13 +28,16 @@ $(BUILD_DIR)/%.c.o: %.c
 clean:
 	rm -rf $(SNAME) $(DNAME) $(BUILD_DIR)
 
-install-header:
-	install -m 644 $(H) $(DESTDIR)$(PREFIX)/include
+install-header: $(H)
+	install -d $(DESTDIR)$(INCLUDEDIR)
+	install -m 644 $^ $(DESTDIR)$(INCLUDEDIR)
 
 install-static: $(SNAME)
-	install -m 755 $(SNAME) $(DESTDIR)$(PREFIX)/lib64
+	install -d $(DESTDIR)$(LIBDIR)
+	install -m 755 $^ $(DESTDIR)$(LIBDIR)
 
 install-shared: $(DNAME)
-	install -m 755 $(DNAME) $(DESTDIR)$(PREFIX)/lib64
+	install -d $(DESTDIR)$(LIBDIR)
+	install -m 755 $^ $(DESTDIR)$(LIBDIR)
 
 install: install-header install-static install-shared