dependency ladder example
This commit is contained in:
		
							
								
								
									
										16
									
								
								slides/makefiles/dependency_ladder/makes/books
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								slides/makefiles/dependency_ladder/makes/books
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| MONTHS != date +%B && date -d '1 month' +%B | ||||
| IP != dig +short myip.opendns.com @resolver1.opendns.com | ||||
| CITY != curl -s http://api.db-ip.com/v2/free/$(IP) | grep city | cut -d: -f2 | tr -d '"' | ||||
|  | ||||
| TITLES = $(MONTHS) | ||||
| TITLES += $(CITY) | ||||
|  | ||||
| BOOKS = $(patsubst %,Books/%.md,$(TITLES)) | ||||
|  | ||||
| $(BOOKS): | ||||
| 	@mkdir -p $(@D) | ||||
| 	fortune -l > $@ | ||||
|  | ||||
| progs += $(BOOKS) | ||||
|  | ||||
| dross += Books/ | ||||
		Reference in New Issue
	
	Block a user