Makefile: Fix all installation directories for .desktop files.
This commit is contained in:
parent
8c42e030d1
commit
25c489398e
1 changed files with 10 additions and 10 deletions
20
Makefile
20
Makefile
|
@ -3,8 +3,8 @@ NAME=qasim
|
||||||
CONFDIR=$(DESTDIR)/etc
|
CONFDIR=$(DESTDIR)/etc
|
||||||
BINDIR=$(DESTDIR)/usr/bin
|
BINDIR=$(DESTDIR)/usr/bin
|
||||||
MANDIR=$(DESTDIR)/usr/share/man
|
MANDIR=$(DESTDIR)/usr/share/man
|
||||||
DOCDIR=$(DESTDIR)/usr/share/doc/$(NAME)
|
DOCDIR=$(DESTDIR)/usr/share/doc
|
||||||
SHAREDIR=$(DESTDIR)/usr/share/$(NAME)
|
SHAREDIR=$(DESTDIR)/usr/share
|
||||||
|
|
||||||
RUBYVERSION=1.8
|
RUBYVERSION=1.8
|
||||||
RDOC=rdoc$(RUBYVERSION)
|
RDOC=rdoc$(RUBYVERSION)
|
||||||
|
@ -32,9 +32,9 @@ build-doc:
|
||||||
|
|
||||||
install-doc:
|
install-doc:
|
||||||
# # install documentation
|
# # install documentation
|
||||||
rm -fr $(DOCDIR)
|
rm -fr $(DOCDIR)/$(NAME)
|
||||||
mkdir -p $(DOCDIR)
|
mkdir -p $(DOCDIR)/$(NAME)
|
||||||
cp -a doc $(DOCDIR)
|
cp -a doc $(DOCDIR)/$(NAME)
|
||||||
|
|
||||||
|
|
||||||
install: install-bin install-lib install-data
|
install: install-bin install-lib install-data
|
||||||
|
@ -50,7 +50,7 @@ install-bin:
|
||||||
|
|
||||||
install-lib:
|
install-lib:
|
||||||
for libfile in $(NAME)/*.rb ; do \
|
for libfile in $(NAME)/*.rb ; do \
|
||||||
install -D -o root -g root -m 644 $$libfile $(SHAREDIR)/$$libfile; \
|
install -D -o root -g root -m 644 $$libfile $(SHAREDIR)/$(NAME)/$$libfile; \
|
||||||
done
|
done
|
||||||
|
|
||||||
install-data:
|
install-data:
|
||||||
|
@ -59,9 +59,9 @@ install-data:
|
||||||
# cat $(NAME).1 | gzip > $(MANDIR)/man1/$(NAME).1.gz
|
# cat $(NAME).1 | gzip > $(MANDIR)/man1/$(NAME).1.gz
|
||||||
#
|
#
|
||||||
## Install icons
|
## Install icons
|
||||||
mkdir -p $(SHAREDIR)/icons
|
mkdir -p $(SHAREDIR)/$(NAME)/icons
|
||||||
install -D -o root -g root -m 644 $(CURDIR)/icons/$(NAME).svg \
|
install -D -o root -g root -m 644 $(CURDIR)/icons/$(NAME).svg \
|
||||||
$(SHAREDIR)/icons/$(NAME).svg
|
$(SHAREDIR)/$(NAME)/icons/$(NAME).svg
|
||||||
#
|
#
|
||||||
## Install completion file
|
## Install completion file
|
||||||
# install -D -o root -g root -m 644 $(CURDIR)/$(NAME).completion $(DESTDIR)/etc/bash_completion.d/$(NAME)
|
# install -D -o root -g root -m 644 $(CURDIR)/$(NAME).completion $(DESTDIR)/etc/bash_completion.d/$(NAME)
|
||||||
|
@ -79,9 +79,9 @@ install-data:
|
||||||
$(CONFDIR)/$(NAME)/default.map
|
$(CONFDIR)/$(NAME)/default.map
|
||||||
#
|
#
|
||||||
# Install examples
|
# Install examples
|
||||||
mkdir -p $(DOCDIR)/examples
|
mkdir -p $(DOCDIR)/$(NAME)/examples
|
||||||
for f in `ls examples`; do \
|
for f in `ls examples`; do \
|
||||||
cat examples/$$f | gzip -f9 > $(DOCDIR)/examples/$$f.gz ; \
|
cat examples/$$f | gzip -f9 > $(DOCDIR)/$(NAME)/examples/$$f.gz ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
.PHONY: destdir
|
.PHONY: destdir
|
||||||
|
|
Loading…
Reference in a new issue