Compile with options (release mode).
This commit is contained in:
		
							parent
							
								
									c8cd9a1fb2
								
							
						
					
					
						commit
						f0eb1790bf
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		
							
								
								
									
										12
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -11,6 +11,8 @@ endif
 | 
			
		|||
# No idea why, but I need that to run applications. Ignore that.
 | 
			
		||||
#LD_P ?= LD_PRELOAD=/usr/local/lib/libipc.so.0
 | 
			
		||||
 | 
			
		||||
OPTS ?=
 | 
			
		||||
 | 
			
		||||
Q ?= @
 | 
			
		||||
 | 
			
		||||
SHOULD_UPDATE = ./bin/should-update
 | 
			
		||||
| 
						 | 
				
			
			@ -21,12 +23,12 @@ SHOULD_UPDATE = ./bin/should-update
 | 
			
		|||
 | 
			
		||||
DOMAIN ?= example.com
 | 
			
		||||
build-write-zone-file: tools/write-zone-file.cr
 | 
			
		||||
	$(Q)-([ ! -f bin/write-zone-file ] || [ tools/write-zone-file.cr -nt bin/write-zone-file ]) && shards build write-zone-file
 | 
			
		||||
	$(Q)-([ ! -f bin/write-zone-file ] || [ tools/write-zone-file.cr -nt bin/write-zone-file ]) && shards build write-zone-file $(OPTS)
 | 
			
		||||
zone-file: build-write-zone-file
 | 
			
		||||
	$(Q)./bin/write-zone-file $(DOMAIN)
 | 
			
		||||
 | 
			
		||||
build-write-template-zone-file: tools/write-template-zone-file.cr
 | 
			
		||||
	$(Q)-([ ! -f bin/write-template-zone-file ] || [ tools/write-template-zone-file.cr -nt bin/write-template-zone-file ]) && shards build write-template-zone-file
 | 
			
		||||
	$(Q)-([ ! -f bin/write-template-zone-file ] || [ tools/write-template-zone-file.cr -nt bin/write-template-zone-file ]) && shards build write-template-zone-file $(OPTS)
 | 
			
		||||
zone-basic-template-file: build-write-template-zone-file
 | 
			
		||||
	$(Q)./bin/write-template-zone-file $(DOMAIN)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -76,13 +78,13 @@ run-token-handler:
 | 
			
		|||
	$(Q)$(LD_P) ./bin/token-handler $(PORT) $(ADDR)
 | 
			
		||||
 | 
			
		||||
build-server:
 | 
			
		||||
	$(Q)-$(SHOULD_UPDATE) bin/dnsmanagerd && shards build dnsmanagerd
 | 
			
		||||
	$(Q)-$(SHOULD_UPDATE) bin/dnsmanagerd && shards build dnsmanagerd $(OPTS)
 | 
			
		||||
 | 
			
		||||
build-client:
 | 
			
		||||
	$(Q)-$(SHOULD_UPDATE) bin/dnsmanager-client && shards build dnsmanager-client
 | 
			
		||||
	$(Q)-$(SHOULD_UPDATE) bin/dnsmanager-client && shards build dnsmanager-client $(OPTS)
 | 
			
		||||
 | 
			
		||||
build-token-handler:
 | 
			
		||||
	$(Q)shards build token-handler
 | 
			
		||||
	$(Q)shards build token-handler $(OPTS)
 | 
			
		||||
 | 
			
		||||
build: build-server build-client build-token-handler
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue