Commit 34052d2c authored by Matthias Braun's avatar Matthias Braun
Browse files

Add very rudimentary install target

parent 58ba744e
......@@ -176,6 +176,18 @@ clean:
@echo CLEAN
$(Q)rm -fr $(builddir) $(gendir) $(docdir)
.PHONY: install
PREFIX ?= /usr/local
INSTALL ?= install
install: $(libfirm_a)
install -d "$(PREFIX)/include/libfirm"
install -m0644 include/libfirm/*.h "$(PREFIX)/include/libfirm"
install -m0644 "$(gendir)"/include/libfirm/*.h "$(PREFIX)/include/libfirm"
install -d "$(PREFIX)/include/libfirm/adt"
install -m0644 include/libfirm/adt/*.h "$(PREFIX)/include/libfirm/adt"
install -d "$(PREFIX)/lib"
install -m0644 $< "$(PREFIX)/lib"
# Ensure all output directories are created
UNUSED1 := $(shell mkdir -p $(libfirm_BUILDDIRS))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment