Split project (keep common)
This commit is contained in:
		
							parent
							
								
									9bc75b9627
								
							
						
					
					
						commit
						96a64cf90d
					
				
					 68 changed files with 32 additions and 3502 deletions
				
			
		
							
								
								
									
										37
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										37
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -3,40 +3,3 @@ sqlx:
 | 
			
		|||
	cargo sqlx database create
 | 
			
		||||
	cargo sqlx migrate run
 | 
			
		||||
	cargo sqlx prepare --workspace
 | 
			
		||||
 | 
			
		||||
build-rpi:
 | 
			
		||||
	cross build --target arm-unknown-linux-gnueabihf
 | 
			
		||||
 | 
			
		||||
emgauwa-%.json: config/%.pkl
 | 
			
		||||
	pkl eval -f json -o $@ $<
 | 
			
		||||
 | 
			
		||||
configs:
 | 
			
		||||
	$(MAKE) emgauwa-core.json
 | 
			
		||||
	$(MAKE) emgauwa-controller.json
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
	rm -f emgauwa-controller.json
 | 
			
		||||
	rm -f emgauwa-controller.sqlite
 | 
			
		||||
	rm -f emgauwa-core.json
 | 
			
		||||
	rm -f emgauwa-core.sqlite
 | 
			
		||||
	rm -f emgauwa-dev.sqlite
 | 
			
		||||
 | 
			
		||||
emgauwa-controller_%:
 | 
			
		||||
	$(TOOL) build --target $* --release --bin emgauwa-controller
 | 
			
		||||
	mkdir -p out/releases
 | 
			
		||||
	cp target/$*/release/emgauwa-controller out/releases/emgauwa-controller_$*
 | 
			
		||||
 | 
			
		||||
emgauwa-core_%:
 | 
			
		||||
	$(TOOL) build --target $* --release --bin emgauwa-core
 | 
			
		||||
	mkdir -p out/releases
 | 
			
		||||
	cp target/$*/release/emgauwa-core out/releases/emgauwa-core_$*
 | 
			
		||||
 | 
			
		||||
emgauwa_%:
 | 
			
		||||
	$(MAKE) emgauwa-controller_$*
 | 
			
		||||
	$(MAKE) emgauwa-core_$*
 | 
			
		||||
 | 
			
		||||
releases:
 | 
			
		||||
	$(MAKE) TOOL=cross emgauwa_arm-unknown-linux-gnueabihf
 | 
			
		||||
	$(MAKE) TOOL=cargo emgauwa_x86_64-unknown-linux-gnu
 | 
			
		||||
	$(MAKE) TOOL=cross emgauwa_x86_64-unknown-linux-musl
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue