mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-19 09:21:30 +03:00
Merge remote-tracking branch 'somasis/gzip-man'
This commit is contained in:
commit
079b006cda
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@
|
|||||||
src/kak
|
src/kak
|
||||||
src/kak.debug
|
src/kak.debug
|
||||||
src/kak.opt
|
src/kak.opt
|
||||||
|
doc/kak.1
|
||||||
doc/kak.1.gz
|
doc/kak.1.gz
|
||||||
doc/manpages/*.gz
|
doc/manpages/*.gz
|
||||||
tags
|
tags
|
||||||
|
24
src/Makefile
24
src/Makefile
@ -1,5 +1,12 @@
|
|||||||
debug ?= yes
|
debug ?= yes
|
||||||
static ?= no
|
static ?= no
|
||||||
|
gzip_man ?= yes
|
||||||
|
|
||||||
|
ifneq ($(gzip_man),yes)
|
||||||
|
ifneq ($(gzip_man),no)
|
||||||
|
$(error gzip_man should be either yes or no)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(debug),yes)
|
ifeq ($(debug),yes)
|
||||||
CPPFLAGS += -DKAK_DEBUG
|
CPPFLAGS += -DKAK_DEBUG
|
||||||
@ -73,9 +80,16 @@ kak$(suffix) : $(objects)
|
|||||||
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -MP -MF $(addprefix ., $(<:.cc=$(suffix).d)) -c -o $@ $<
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -MP -MF $(addprefix ., $(<:.cc=$(suffix).d)) -c -o $@ $<
|
||||||
|
|
||||||
# Generate the man page
|
# Generate the man page
|
||||||
|
ifeq ($(gzip_man),yes)
|
||||||
../doc/kak.1.gz: ../doc/kak.1.txt
|
../doc/kak.1.gz: ../doc/kak.1.txt
|
||||||
a2x --no-xmllint -f manpage $<
|
a2x --no-xmllint -f manpage $<
|
||||||
gzip -n -9 -f $(basename $<)
|
gzip -n -9 -f $(basename $<)
|
||||||
|
man: ../doc/kak.1.gz
|
||||||
|
else
|
||||||
|
../doc/kak.1: ../doc/kak.1.txt
|
||||||
|
a2x --no-xmllint -f manpage $<
|
||||||
|
man: ../doc/kak.1
|
||||||
|
endif
|
||||||
|
|
||||||
check: test
|
check: test
|
||||||
test:
|
test:
|
||||||
@ -84,14 +98,13 @@ test:
|
|||||||
TAGS: tags
|
TAGS: tags
|
||||||
tags:
|
tags:
|
||||||
ctags -R
|
ctags -R
|
||||||
man: ../doc/kak.1.gz
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f .*.o .*.d
|
rm -f .*.o .*.d
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f kak kak$(suffix)
|
rm -f kak kak$(suffix)
|
||||||
find ../doc -type f -name \*\\.gz -exec rm -f '{}' +
|
find ../doc -type f \( -name \*\\.gz -o -name \*\\.1 \) -exec rm -f '{}' +
|
||||||
|
|
||||||
installdirs:
|
installdirs:
|
||||||
install -d $(bindir) \
|
install -d $(bindir) \
|
||||||
@ -113,7 +126,11 @@ install: kak man installdirs
|
|||||||
[ -e $(sharedir)/autoload ] || ln -s rc $(sharedir)/autoload
|
[ -e $(sharedir)/autoload ] || ln -s rc $(sharedir)/autoload
|
||||||
install -m 0644 ../colors/* $(sharedir)/colors
|
install -m 0644 ../colors/* $(sharedir)/colors
|
||||||
install -m 0644 ../README.asciidoc $(docdir)
|
install -m 0644 ../README.asciidoc $(docdir)
|
||||||
|
ifeq ($(gzip_man),yes)
|
||||||
install -m 0644 ../doc/kak.1.gz $(mandir)
|
install -m 0644 ../doc/kak.1.gz $(mandir)
|
||||||
|
else
|
||||||
|
install -m 0644 ../doc/kak.1 $(mandir)
|
||||||
|
endif
|
||||||
|
|
||||||
install-strip: install
|
install-strip: install
|
||||||
strip -s $(bindir)/kak
|
strip -s $(bindir)/kak
|
||||||
@ -122,7 +139,8 @@ uninstall:
|
|||||||
rm -rf $(bindir)/kak \
|
rm -rf $(bindir)/kak \
|
||||||
$(sharedir) \
|
$(sharedir) \
|
||||||
$(docdir) \
|
$(docdir) \
|
||||||
$(mandir)/kak.1.gz
|
$(mandir)/kak.1.gz \
|
||||||
|
$(mandir)/kak.1
|
||||||
|
|
||||||
.PHONY: check TAGS clean distclean installdirs install install-strip uninstall
|
.PHONY: check TAGS clean distclean installdirs install install-strip uninstall
|
||||||
.PHONY: tags test man kak
|
.PHONY: tags test man kak
|
||||||
|
Loading…
Reference in New Issue
Block a user