mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 02:01:33 +01:00 
			
		
		
		
	remove lock target from makefile
fix quoting problem with doc target
This commit is contained in:
		
							parent
							
								
									4003c3f5a7
								
							
						
					
					
						commit
						3d006248f5
					
				
					 1 changed files with 2 additions and 9 deletions
				
			
		
							
								
								
									
										11
									
								
								GNUmakefile
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								GNUmakefile
									
										
									
									
									
								
							|  | @ -15,7 +15,7 @@ export CPM_SOURCE_CACHE=${HOME}/.cache/CPM | ||||||
| PROJECT_NAME:=$(shell basename $(CURDIR)) | PROJECT_NAME:=$(shell basename $(CURDIR)) | ||||||
| BUILD_DIR?=../build-$(PROJECT_NAME)-$(CXX)-$(BUILD_TYPE) | BUILD_DIR?=../build-$(PROJECT_NAME)-$(CXX)-$(BUILD_TYPE) | ||||||
| 
 | 
 | ||||||
| .PHONY: update format all test standalone doc check clean distclean lock | .PHONY: update format all test standalone doc check clean distclean | ||||||
| 
 | 
 | ||||||
| # the default target does just all, but neither standalone nor doc | # the default target does just all, but neither standalone nor doc | ||||||
| test: | test: | ||||||
|  | @ -31,13 +31,6 @@ update: | ||||||
| 	wget -q -O cmake/CPM.cmake https://github.com/cpm-cmake/CPM.cmake/releases/latest/download/get_cpm.cmake | 	wget -q -O cmake/CPM.cmake https://github.com/cpm-cmake/CPM.cmake/releases/latest/download/get_cpm.cmake | ||||||
| 	wget -q -O cmake/WarningsAsErrors.cmake https://raw.githubusercontent.com/approvals/ApprovalTests.cpp/master/CMake/WarningsAsErrors.cmake | 	wget -q -O cmake/WarningsAsErrors.cmake https://raw.githubusercontent.com/approvals/ApprovalTests.cpp/master/CMake/WarningsAsErrors.cmake | ||||||
| 
 | 
 | ||||||
| lock: all standalone doc |  | ||||||
| 	cmake --build $(BUILD_DIR)/all --target cpm-update-package-lock |  | ||||||
| 	cmake --build $(BUILD_DIR)/test --target cpm-update-package-lock |  | ||||||
| 	cmake --build $(BUILD_DIR)/install --target cpm-update-package-lock |  | ||||||
| 	cmake --build $(BUILD_DIR)/standalone --target cpm-update-package-lock |  | ||||||
| 	cmake --build $(BUILD_DIR)/documentation --target cpm-update-package-lock |  | ||||||
| 
 |  | ||||||
| # install the library to stagedir | # install the library to stagedir | ||||||
| install: | install: | ||||||
| 	cmake -S . -B $(BUILD_DIR)/$@ ${CMAKE_PRESET} -DCMAKE_INSTALL_PREFIX=$(STAGE_DIR) -DCMAKE_CXX_STANDARD=20 #NO! -DCMAKE_CXX_CLANG_TIDY=clang-tidy # --trace-expand | 	cmake -S . -B $(BUILD_DIR)/$@ ${CMAKE_PRESET} -DCMAKE_INSTALL_PREFIX=$(STAGE_DIR) -DCMAKE_CXX_STANDARD=20 #NO! -DCMAKE_CXX_CLANG_TIDY=clang-tidy # --trace-expand | ||||||
|  | @ -61,7 +54,7 @@ all: | ||||||
| 
 | 
 | ||||||
| # GenerateDocs | # GenerateDocs | ||||||
| doc: | doc: | ||||||
| 	cmake -S documentation -B $(BUILD_DIR)/documentation "${CMAKE_PRESET}" | 	cmake -S documentation -B $(BUILD_DIR)/documentation ${CMAKE_PRESET} | ||||||
| 	cmake --build $(BUILD_DIR)/documentation --target GenerateDocs | 	cmake --build $(BUILD_DIR)/documentation --target GenerateDocs | ||||||
| 
 | 
 | ||||||
| format: distclean | format: distclean | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue