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/