forked from circlingthesun/cloudclean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·40 lines (32 loc) · 965 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
##############################################################
# CMake Project Wrapper Makefile #
##############################################################
SHELL := /bin/bash
RM := rm -rf
all: ./build/Makefile
@ $(MAKE) -C build
./build/Makefile:
@ (cd build >/dev/null 2>&1 && cmake ..)
distclean:
@- (cd build >/dev/null 2>&1 && cmake .. >/dev/null 2>&1)
@- $(MAKE) --silent -C build clean || true
@- $(RM) ./build/Makefile
@- $(RM) ./build/src
@- $(RM) ./build/test
@- $(RM) ./build/CMake*
@- $(RM) ./build/cmake.*
@- $(RM) ./build/*.cmake
@- $(RM) ./build/*.txt
@- $(RM) ./docs/*.html
@- $(RM) ./docs/*.css
@- $(RM) ./docs/*.png
@- $(RM) ./docs/*.jpg
@- $(RM) ./docs/*.gif
@- $(RM) ./docs/*.tiff
@- $(RM) ./docs/*.php
@- $(RM) ./docs/search
@- $(RM) ./docs/installdox
ifeq ($(findstring distclean,$(MAKECMDGOALS)),)
$(MAKECMDGOALS): ./build/Makefile
@ $(MAKE) -C build $(MAKECMDGOALS)
endif