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:
@echo "Nothing to be done."
test: 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
doc: README.md
@@ -19,5 +21,5 @@ clean:
$(RM) -f README.html
install:
$(MKDIR) $(PREFIX)/include
cp m-*.h $(PREFIX)/include
$(MKDIR) $(DESTDIR)$(PREFIX)/include
cp m-*.h $(DESTDIR)$(PREFIX)/include