-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (30 loc) · 976 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# -----------------------------------------------------------------------------
# CMake project wrapper Makefile ----------------------------------------------
# -----------------------------------------------------------------------------
SHELL := /bin/bash
RM := rm -rf
MKDIR := mkdir -p
BUILD_DIR := ./build
BUILD_DIRS := $(BUILD_DIR) cmake-build-* bin
SRC_DIR := ..
IDEA_FILES := .idea
ECLIPSE_FILES := .project .cproject .settings
KDEVELOP_FILES := *.kdev4 .kdev4
all: $(BUILD_DIR)/Makefile
$(MAKE) -C $(BUILD_DIR)
clean: $(BUILD_DIR)/Makefile
$(MAKE) -C $(BUILD_DIR) clean
docs: $(BUILD_DIR)/Makefile
$(MAKE) -C $(BUILD_DIR) adl-doc
distclean:
$(RM) $(BUILD_DIRS)
$(BUILD_DIR)/Makefile: CMakeLists.txt
$(MKDIR) $(BUILD_DIR) > /dev/null
cd $(BUILD_DIR) > /dev/null 2>&1 && cmake $(SRC_DIR)
eclipse-clean:
$(RM) $(ECLIPSE_FILES)
kdevelop-clean:
$(RM) $(KDEVELOP_FILES)
idea-clean:
$(RM) $(IDEA_FILES)
ide-clean: eclipse-clean kdevelop-clean idea-clean