forked from johnkerl/miller
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.no-autoconfig
26 lines (25 loc) · 761 Bytes
/
Makefile.no-autoconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
MANDIR ?= /usr/share/man
DESTDIR ?=
all: c manpage
devall: c install doc
# TODO: the install target exists to put most-recent mlr executable in the
# path to be picked up by the mlr-execs in the docs dir. better would be to
# export PATH here with ./c at its head.
c: .always
make -C c -f Makefile.no-autoconfig top
doc: .always
cd doc && poki
install: .always
make -C c -f Makefile.no-autoconfig install
install -d -m 0755 $(DESTDIR)/$(MANDIR)
install -m 0644 doc/miller.1 $(DESTDIR)/$(MANDIR)
clean: .always
make -C c -f Makefile.no-autoconfig clean
.PHONY: manpage
# OSX:
# * brew install asciidoc
# * export XML_CATALOG_FILES=/usr/local/etc/xml/catalog
manpage: doc/miller.1.txt
( cd doc && a2x -d manpage -f manpage miller.1.txt )
.always:
@true