[man] Update Makefile

This commit is contained in:
Ramon Buldó 2015-05-15 20:10:49 +02:00
parent d2907fc234
commit 0e7de55d88

View file

@ -78,7 +78,15 @@ EFISHELL = \
efi_shell/shellx64_v1.efi \ efi_shell/shellx64_v1.efi \
efi_shell/shellx64_v2.efi efi_shell/shellx64_v2.efi
all: $(BINPROGS) #bin/bash_completion bin/zsh_completion MAN_XML = \
profile.conf.xml \
buildiso.xml
MAN = \
profile.conf.1 \
buildiso.1
all: $(BINPROGS) doc #bin/bash_completion bin/zsh_completion
edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/manjaro-tools|g" \ edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/manjaro-tools|g" \
-e "s|@bindir[@]|$(DESTDIR)$(PREFIX)/bin|g" \ -e "s|@bindir[@]|$(DESTDIR)$(PREFIX)/bin|g" \
@ -93,8 +101,13 @@ edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/manjaro-tools|g" \
@chmod a-w "$@" @chmod a-w "$@"
@chmod +x "$@" @chmod +x "$@"
doc:
mkdir -p man
$(foreach var,$(MAN_XML),xsltproc /usr/share/docbook2X/xslt/man/docbook.xsl docbook/$(var) | db2x_manxml --output-dir man ;)
clean: clean:
rm -f $(BINPROGS) #bin/bash_completion bin/zsh_completion rm -f $(BINPROGS) #bin/bash_completion bin/zsh_completion
rm -rf man
install: install:
install -dm0755 $(DESTDIR)$(SYSCONFDIR)/manjaro-tools install -dm0755 $(DESTDIR)$(SYSCONFDIR)/manjaro-tools
@ -118,6 +131,7 @@ install:
install -m0644 ${SCRIPTS} $(DESTDIR)$(PREFIX)/share/manjaro-tools/scripts install -m0644 ${SCRIPTS} $(DESTDIR)$(PREFIX)/share/manjaro-tools/scripts
install -dm0755 $(DESTDIR)$(PREFIX)/share/manjaro-tools/efi_shell install -dm0755 $(DESTDIR)$(PREFIX)/share/manjaro-tools/efi_shell
install -m0644 ${EFISHELL} $(DESTDIR)$(PREFIX)/share/manjaro-tools/efi_shell install -m0644 ${EFISHELL} $(DESTDIR)$(PREFIX)/share/manjaro-tools/efi_shell
for f in ${MAN}; do gzip -c man/$$f > $(DESTDIR)$(PREFIX)/share/man/man1/$$f.gz; done
# install -Dm0644 bin/bash_completion $(DESTDIR)/$(PREFIX)/share/bash-completion/completions/manjaro_tools # install -Dm0644 bin/bash_completion $(DESTDIR)/$(PREFIX)/share/bash-completion/completions/manjaro_tools
# install -Dm0644 bin/zsh_completion $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_manjaro_tools # install -Dm0644 bin/zsh_completion $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_manjaro_tools
@ -134,6 +148,8 @@ uninstall:
for f in ${CPIOINST}; do rm -f $(DESTDIR)$(PREFIX)/lib/initcpio/install/$$f; done for f in ${CPIOINST}; do rm -f $(DESTDIR)$(PREFIX)/lib/initcpio/install/$$f; done
for f in ${SCRIPTS}; do rm -f $(DESTDIR)$(PREFIX)/share/manjaro-tools/scripts/$$f; done for f in ${SCRIPTS}; do rm -f $(DESTDIR)$(PREFIX)/share/manjaro-tools/scripts/$$f; done
for f in ${EFISHELL}; do rm -f $(DESTDIR)$(PREFIX)/share/manjaro-tools/efi_shell/$$f; done for f in ${EFISHELL}; do rm -f $(DESTDIR)$(PREFIX)/share/manjaro-tools/efi_shell/$$f; done
for f in ${MAN}; do rm -f $(DESTDIR)$(PREFIX)/share/man/man1/$$f.gz; done
# rm $(DESTDIR)/$(PREFIX)/share/bash-completion/completions/manjaro_tools # rm $(DESTDIR)/$(PREFIX)/share/bash-completion/completions/manjaro_tools
# rm $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_manjaro_tools # rm $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_manjaro_tools