Skip to content

Commit

Permalink
MANPATH -> MANPREFIX. Closes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 3, 2010
1 parent 26c4da6 commit 88d3c87
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@

PREFIX ?= /usr/local
MANPATH ?= "$(PREFIX)/share/man/man1"
MANPREFIX ?= "$(PREFIX)/share/man/man1"
BINS = $(wildcard bin/git-*)
MANS = $(wildcard man/git-*.md)
MAN_HTML = $(MANS:.md=.html)
MAN_PAGES = $(MANS:.md=.1)

install:
@mkdir -p $(MANPATH)
@mkdir -p $(MANPREFIX)
@echo "... installing bins to $(PREFIX)/bin"
@echo "... installing man pages to $(MANPATH)"
@echo "... installing man pages to $(MANPREFIX)"
@$(foreach BIN, $(BINS), \
echo "... installing `basename $(BIN)`"; \
cp -f $(BIN) $(PREFIX)/$(BIN); \
)
cp -f man/git-*.1 $(MANPATH)
cp -f man/git-*.1 $(MANPREFIX)

docs: $(MAN_HTML) $(MAN_PAGES)

Expand All @@ -37,8 +37,8 @@ uninstall:
rm -f $(PREFIX)/$(BIN); \
)
@$(foreach MAN, $(MAN_PAGES), \
echo "... uninstalling $(MANPATH)/$(MAN)"; \
rm -f $(MANPATH)/$(MAN); \
echo "... uninstalling $(MANPREFIX)/$(MAN)"; \
rm -f $(MANPREFIX)/$(MAN); \
)

clean: docclean
Expand Down

0 comments on commit 88d3c87

Please sign in to comment.