Makefile:
Makefile
WIKI := https://<someurl>/wiki DOCS := $(wildcard *.moin) NAMES := $(patsubst %.moin,%,$(DOCS)) default: pull pull: for i in $(NAMES); do \ curl --netrc-file ~/.netrc "$(WIKI)/$$i?action=raw" | fromdos > $$i.moin ; \ done