Skip to content

Commit

Permalink
将configure改为CMake适应的格式
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneplus committed Mar 16, 2013
1 parent 3e9e1ce commit 5a19eba
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 26,156 deletions.
40 changes: 40 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
Loading

0 comments on commit 5a19eba

Please sign in to comment.