Add support for man pages & clean vendor dir.

This commit is contained in:
Glenn Y. Rolland 2014-08-12 09:22:51 +02:00
parent 8bd7a473e8
commit 3caac05977
4 changed files with 7 additions and 3 deletions

View file

@ -102,7 +102,8 @@ install-ui: $(RBUI_FILES)
## BINARY SECTION
clean-bin:
# make no sense in ruby
# remove external packages
rm -fr vendor/bundle
build-bin:
@ -137,8 +138,11 @@ build-data:
install-data:
## Install man pages
# mkdir -p $(MANDIR)/man1
# cat $(NAME).1 | gzip > $(MANDIR)/man1/$(NAME).1.gz
mkdir -p $(MANDIR)/man1
for binfile in bin/*.rb ; do \
BINFILE=`basename $$binfile |sed -e 's/.rb$$//'`; \
cat man/$${BINFILE}.1 | gzip > $(MANDIR)/man1/$${BINFILE}.1.gz ; \
done
#
## Install icons
mkdir -p $(SHAREDIR)/$(NAME)/icons