Skip to content

Instantly share code, notes, and snippets.

@noahcampbell
Created November 25, 2010 19:46
Show Gist options
  • Save noahcampbell/715825 to your computer and use it in GitHub Desktop.
Save noahcampbell/715825 to your computer and use it in GitHub Desktop.
DIST = ../dist
.SUFFIXES: .1.gz .1
manpages: dispatch.1.gz job-v20.1.gz rd-jobs.1.gz rd-options.1.gz rd-setup.1.gz rdq.1.gz resource-v10.1.gz run.1 rundeck.1.gz
%.1.gz: %.1
gzip $<
%.1:
pandoc -s -w man $@.md -o $@
PAGES = dispatch.1 job-v20.1 rd-jobs.1 rd-options.1 rd-setup.1 rdq.1 resource-v10.1 run.1 rundeck.1
publish : roff html
roff :
echo Generating system man pages
mkdir -p $(DIST)/man/man1
-for f in $(PAGES); do ( pandoc -s -w man $$f.md -o $(DIST)/man/man1/$$f; ); done
html :
echo Generating html for system man pages
mkdir -p $(DIST)/html
-for f in $(PAGES); do ( pandoc -s -w html $$f.md -o $(DIST)/html/$$f.html; ); done
clean :
rm *.1 *.1.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment