Using when with multiple files

when is a very nice perl program to keep track of appointments. I wanted to use more than one file as the input of when, so I made this make script:


#!/usr/bin/make -f

calendar = $(HOME)/.when/calendar

.PHONY: all
all: $(calendar)
when --nopaging

$(calendar): $(wildcard $(HOME)/.when/calendars/*.when)
cat $^ > $@

Comente

Seu email nunca será publicado ou compartilhado.