Add support for DESTDIR

This commit is contained in:
Patrick Pelissier committed 2017-08-20 09:56:15 +02:00
1 parent ed5123a9cc
commit f93e7a0531
1 file changed
+5 -3
+5 -3
View File
@@ -5,8 +5,10 @@ MKDIR=mkdir -p
all: all:
@echo "Nothing to be done." @echo "Nothing to be done."
test: check
check: check:
cd tests && make check # NOTE: May need to run the test with other compilers? clang ? musl-gcc? cd tests && make check
cd example && make examples cd example && make examples
doc: README.md doc: README.md
@@ -19,5 +21,5 @@ clean:
$(RM) -f README.html $(RM) -f README.html
install: install:
$(MKDIR) $(PREFIX)/include $(MKDIR) $(DESTDIR)$(PREFIX)/include
cp m-*.h $(PREFIX)/include cp m-*.h $(DESTDIR)$(PREFIX)/include