Adapted makefile to qasim.
This commit is contained in:
parent
1513dd0aac
commit
9688450cd6
1 changed files with 17 additions and 9 deletions
26
Makefile
26
Makefile
|
@ -1,17 +1,18 @@
|
||||||
|
|
||||||
CONFDIR=$(DESTDIR)/etc/sshfs-mapper
|
NAME=qasim
|
||||||
|
CONFDIR=$(DESTDIR)/etc/$(NAME)
|
||||||
BINDIR=$(DESTDIR)/usr/bin
|
BINDIR=$(DESTDIR)/usr/bin
|
||||||
MANDIR=$(DESTDIR)/usr/share/man
|
MANDIR=$(DESTDIR)/usr/share/man
|
||||||
DOCDIR=$(DESTDIR)/usr/share/doc/sshfs-mapper
|
DOCDIR=$(DESTDIR)/usr/share/doc/$(NAME)
|
||||||
|
|
||||||
RUBYVERSION=1.8
|
RUBYVERSION=1.8
|
||||||
RDOC=rdoc$(RUBYVERSION)
|
RDOC=rdoc$(RUBYVERSION)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(MAKE) -C sshfs-mapper
|
$(MAKE) -C $(NAME)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -C sshfs-mapper clean
|
$(MAKE) -C $(NAME) clean
|
||||||
|
|
||||||
doc: build-doc
|
doc: build-doc
|
||||||
|
|
||||||
|
@ -23,8 +24,8 @@ build-doc:
|
||||||
--promiscuous \
|
--promiscuous \
|
||||||
--inline-source \
|
--inline-source \
|
||||||
--line-numbers \
|
--line-numbers \
|
||||||
-o doc sshfs-mapper/ \
|
-o doc $(NAME)/ \
|
||||||
sshfs-mapper.rb
|
bin/
|
||||||
# --diagram
|
# --diagram
|
||||||
#
|
#
|
||||||
|
|
||||||
|
@ -38,9 +39,10 @@ install-doc:
|
||||||
install:
|
install:
|
||||||
mkdir -p $(BINDIR)
|
mkdir -p $(BINDIR)
|
||||||
mkdir -p $(MANDIR)/man1
|
mkdir -p $(MANDIR)/man1
|
||||||
install -D -o root -g root -m 755 $(CURDIR)/sshfs-mapper.sh $(BINDIR)/sshfs-mapper
|
install -D -o root -g root -m 755 $(CURDIR)/bin/$(NAME)-gui.rb $(BINDIR)/$(NAME)-gui
|
||||||
cat sshfs-mapper.1 | gzip > $(MANDIR)/man1/sshfs-mapper.1.gz
|
cat $(NAME).1 | gzip > $(MANDIR)/man1/$(NAME).1.gz
|
||||||
install -D -o root -g root -m 644 $(CURDIR)/sshfs-mapper.completion $(DESTDIR)/etc/bash_completion.d/sshfs-mapper
|
## Install completion file
|
||||||
|
# install -D -o root -g root -m 644 $(CURDIR)/$(NAME).completion $(DESTDIR)/etc/bash_completion.d/$(NAME)
|
||||||
#
|
#
|
||||||
mkdir -p $(CONFDIR)
|
mkdir -p $(CONFDIR)
|
||||||
for f in `ls conf`; do \
|
for f in `ls conf`; do \
|
||||||
|
@ -51,3 +53,9 @@ install:
|
||||||
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)/examples/$$f.gz ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
.PHONY: destdir
|
||||||
|
destdir:
|
||||||
|
rm -fr destdir
|
||||||
|
fakeroot $(MAKE) install DESTDIR=destdir
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue