From 1ac2a1e8046c320ed07dd401306e464283b572e8 Mon Sep 17 00:00:00 2001 From: John McNamara Date: Sun, 20 Aug 2017 11:48:11 +0100 Subject: [PATCH] Improve "make install". --- .travis.yml | 2 ++ Makefile | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index a5726455..465499a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,3 +31,5 @@ script: - make test_unit V=1 - make examples V=1 - make test_valgrind V=1 + - sudo make install V=1 + - sudo make uninstall V=1 \ No newline at end of file diff --git a/Makefile b/Makefile index 69669774..426e3355 100644 --- a/Makefile +++ b/Makefile @@ -97,14 +97,16 @@ docs: $(Q)$(MAKE) -C docs # Simple minded install. -install: +install: all + $(Q)mkdir -p $(INSTALL_DIR)/include $(Q)cp -R include/* $(INSTALL_DIR)/include - $(Q)cp lib/* $(INSTALL_DIR)/lib + $(Q)mkdir -p $(INSTALL_DIR)/lib + $(Q)cp lib/* $(INSTALL_DIR)/lib # Simpler minded uninstall. uninstall: $(Q)rm -rf $(INSTALL_DIR)/include/xlsxwriter* - $(Q)rm $(INSTALL_DIR)/lib/libxlsxwriter.* + $(Q)rm $(INSTALL_DIR)/lib/libxlsxwriter.* # Strip the lib files. strip: