From ef6794bec37b67ad2a2752c4e2dd0fd3363ecef1 Mon Sep 17 00:00:00 2001 From: Lakindu Akash Date: Sun, 4 Oct 2020 15:53:45 +0530 Subject: [PATCH] Rename old Makfile to compatible with cmake --- Makefile.cmake | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile.cmake diff --git a/Makefile.cmake b/Makefile.cmake new file mode 100644 index 0000000..3b2376b --- /dev/null +++ b/Makefile.cmake @@ -0,0 +1,15 @@ +all: + @echo "Run 'make install' for installation." + @echo "Run 'make uninstall' for uninstallation." + mkdir -p build + cd build && cmake -G "CodeBlocks - Unix Makefiles" ../src + +install: + @echo "Installing" + cd build && cmake -DCMAKE_INSTALL_PREFIX=$(DESTDIR) -G "CodeBlocks - Unix Makefiles" ../src + $(MAKE) -C src/scripts install + $(MAKE) -C build install_build + +uninstall: + $(MAKE) -C src/scripts uninstall + $(MAKE) -C build uninstall_build