Skip to content

Commit

Permalink
Added note about building and install docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chipsenkbeil committed May 28, 2019
1 parent 80364a9 commit 226ce29
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ DerivedData
/choose
/choose*.zip
/choose*.tgz

docs/choose.1
16 changes: 10 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
.PHONY: docs install-docs uninstall-docs
.PHONY: docs install-docs uninstall-docs help
VERSION = $(shell defaults read `pwd`/Info CFBundleVersion)
APPFILE = choose
TGZFILE = choose-$(VERSION).tgz
ZIPFILE = choose-$(VERSION).zip

release: $(TGZFILE) $(ZIPFILE)
release: $(TGZFILE) $(ZIPFILE) ## Build release files

docs:
help: ## Display help information
@printf 'usage: make [target] ...\n\ntargets:\n'
@egrep '^(.+)\:\ .*##\ (.+)' ${MAKEFILE_LIST} | sed 's/:.*##/#/' | column -t -c 2 -s '#'

docs: ## Build documentation
@$(MAKE) -C docs

install-docs:
install-docs: ## Install documentation
@$(MAKE) -C docs install

uninstall-docs:
uninstall-docs: ## Uninstall documentation
@$(MAKE) -C docs uninstall

$(APPFILE): SDAppDelegate.m choose.xcodeproj
Expand All @@ -26,7 +30,7 @@ $(TGZFILE): $(APPFILE)
$(ZIPFILE): $(APPFILE)
zip -qr $@ $<

clean:
clean: ## Remove generated files and documentation
rm -rf $(APPFILE) $(TGZFILE) $(ZIPFILE)
@$(MAKE) -C docs clean

Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@
$ brew install choose-gui
```

### Build and Install Documentation

From root of repository, run:

```bash
make docs
make install-docs
```

You can then issue `man choose` to read the manual.

Note that this requires `pandoc` to be installed on your system to build the
manual page.

## Usage

```bash
Expand Down

0 comments on commit 226ce29

Please sign in to comment.