From 845fcff94aab1eb0ac3955b19e712cc50f68099e Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期四, 14 一月 2021 10:09:39 +0800 Subject: [PATCH] update --- Makefile | 234 +++------------------------------------------------------- 1 files changed, 14 insertions(+), 220 deletions(-) diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 index a9c9f8c..df8a65d --- a/Makefile +++ b/Makefile @@ -1,224 +1,18 @@ -# CMAKE generated file: DO NOT EDIT! -# Generated by "Unix Makefiles" Generator, CMake Version 3.5 +# debug "make --just-print" +DIRS = src test_net_socket +TAR_NAME = shm_queue.tar.gz -# Default target executed when no arguments are given to make. -default_target: all +all: + @for i in $(DIRS); do \ + (cd $$i && echo ">>>>>> making $$i ..." && $(MAKE) ) || exit 1; \ + done -.PHONY : default_target - -# Allow only one "make -f Makefile2" at a time, but pass parallelism. -.NOTPARALLEL: - - -#============================================================================= -# Special targets provided by cmake. - -# Disable implicit rules so canonical targets will work. -.SUFFIXES: - - -# Remove some rules from gmake that .SUFFIXES does not remove. -SUFFIXES = - -.SUFFIXES: .hpux_make_needs_suffix_list - - -# Suppress display of executed commands. -$(VERBOSE).SILENT: - - -# A target that is always out of date. -cmake_force: - -.PHONY : cmake_force - -#============================================================================= -# Set environment variables for the build. - -# The shell in which to execute make rules. -SHELL = /bin/sh - -# The CMake executable. -CMAKE_COMMAND = /usr/bin/cmake - -# The command to remove a file. -RM = /usr/bin/cmake -E remove -f - -# Escaping for special characters. -EQUALS = = - -# The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /home/wzq/wk/c_softbus - -# The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /home/wzq/wk/c_softbus - -#============================================================================= -# Targets provided globally by CMake. - -# Special rule for the target install -install: preinstall - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..." - /usr/bin/cmake -P cmake_install.cmake -.PHONY : install - -# Special rule for the target install -install/fast: preinstall/fast - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..." - /usr/bin/cmake -P cmake_install.cmake -.PHONY : install/fast - -# Special rule for the target list_install_components -list_install_components: - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\"" -.PHONY : list_install_components - -# Special rule for the target list_install_components -list_install_components/fast: list_install_components - -.PHONY : list_install_components/fast - -# Special rule for the target install/strip -install/strip: preinstall - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..." - /usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake -.PHONY : install/strip - -# Special rule for the target install/strip -install/strip/fast: install/strip - -.PHONY : install/strip/fast - -# Special rule for the target install/local -install/local: preinstall - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..." - /usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake -.PHONY : install/local - -# Special rule for the target install/local -install/local/fast: install/local - -.PHONY : install/local/fast - -# Special rule for the target rebuild_cache -rebuild_cache: - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." - /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) -.PHONY : rebuild_cache - -# Special rule for the target rebuild_cache -rebuild_cache/fast: rebuild_cache - -.PHONY : rebuild_cache/fast - -# Special rule for the target edit_cache -edit_cache: - @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." - /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. -.PHONY : edit_cache - -# Special rule for the target edit_cache -edit_cache/fast: edit_cache - -.PHONY : edit_cache/fast - -# The main all target -all: cmake_check_build_system - $(CMAKE_COMMAND) -E cmake_progress_start /home/wzq/wk/c_softbus/CMakeFiles /home/wzq/wk/c_softbus/CMakeFiles/progress.marks - $(MAKE) -f CMakeFiles/Makefile2 all - $(CMAKE_COMMAND) -E cmake_progress_start /home/wzq/wk/c_softbus/CMakeFiles 0 -.PHONY : all - -# The main clean target clean: - $(MAKE) -f CMakeFiles/Makefile2 clean -.PHONY : clean + @for i in $(DIRS); do \ + (cd $$i && echo ">>>>>> cleaning $$i ..." && $(MAKE) clean) || exit 1; \ + done + -# The main clean target -clean/fast: clean - -.PHONY : clean/fast - -# Prepare targets for installation. -preinstall: all - $(MAKE) -f CMakeFiles/Makefile2 preinstall -.PHONY : preinstall - -# Prepare targets for installation. -preinstall/fast: - $(MAKE) -f CMakeFiles/Makefile2 preinstall -.PHONY : preinstall/fast - -# clear depends -depend: - $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 -.PHONY : depend - -#============================================================================= -# Target rules for targets named shm_queue - -# Build rule for target. -shm_queue: cmake_check_build_system - $(MAKE) -f CMakeFiles/Makefile2 shm_queue -.PHONY : shm_queue - -# fast build rule for target. -shm_queue/fast: - $(MAKE) -f src/CMakeFiles/shm_queue.dir/build.make src/CMakeFiles/shm_queue.dir/build -.PHONY : shm_queue/fast - -#============================================================================= -# Target rules for targets named test_net_mod_socket - -# Build rule for target. -test_net_mod_socket: cmake_check_build_system - $(MAKE) -f CMakeFiles/Makefile2 test_net_mod_socket -.PHONY : test_net_mod_socket - -# fast build rule for target. -test_net_mod_socket/fast: - $(MAKE) -f test_net_socket/CMakeFiles/test_net_mod_socket.dir/build.make test_net_socket/CMakeFiles/test_net_mod_socket.dir/build -.PHONY : test_net_mod_socket/fast - -#============================================================================= -# Target rules for targets named heart_beat - -# Build rule for target. -heart_beat: cmake_check_build_system - $(MAKE) -f CMakeFiles/Makefile2 heart_beat -.PHONY : heart_beat - -# fast build rule for target. -heart_beat/fast: - $(MAKE) -f test_net_socket/CMakeFiles/heart_beat.dir/build.make test_net_socket/CMakeFiles/heart_beat.dir/build -.PHONY : heart_beat/fast - -# Help Target -help: - @echo "The following are some of the valid targets for this Makefile:" - @echo "... all (the default if no target is provided)" - @echo "... clean" - @echo "... depend" - @echo "... install" - @echo "... list_install_components" - @echo "... install/strip" - @echo "... install/local" - @echo "... rebuild_cache" - @echo "... edit_cache" - @echo "... shm_queue" - @echo "... test_net_mod_socket" - @echo "... heart_beat" -.PHONY : help - - - -#============================================================================= -# Special targets to cleanup operation of make. - -# Special rule to run CMake to check the build system integrity. -# No rule that depends on this can have commands that come from listfiles -# because they might be regenerated. -cmake_check_build_system: - $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 -.PHONY : cmake_check_build_system - +tar: + rm -f $(TAR_NAME) + git archive --format tar.gz --output $(TAR_NAME) master \ No newline at end of file -- Gitblit v1.8.0