2009-03-13 13:32:32 +00:00
|
|
|
|
2009-08-15 17:13:52 +00:00
|
|
|
CONFDIR=$(DESTDIR)/etc/sshfs-mapper
|
2009-03-13 13:32:32 +00:00
|
|
|
BINDIR=$(DESTDIR)/usr/bin
|
|
|
|
MANDIR=$(DESTDIR)/usr/share/man
|
|
|
|
DOCDIR=$(DESTDIR)/usr/share/doc/sshfs-mapper
|
2009-04-03 16:27:49 +00:00
|
|
|
|
2009-03-13 13:32:32 +00:00
|
|
|
all:
|
2009-04-03 16:27:49 +00:00
|
|
|
racc -v -o mapparser.rb mapparser.y
|
|
|
|
cat mapparser.output
|
2009-03-13 13:32:32 +00:00
|
|
|
|
|
|
|
clean:
|
2009-04-03 16:27:49 +00:00
|
|
|
rm -f mapparser.rb
|
2009-03-13 13:32:32 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
mkdir -p $(BINDIR)
|
|
|
|
mkdir -p $(MANDIR)/man1
|
2009-09-15 10:00:14 +00:00
|
|
|
install -D -o root -g root -m 755 $(CURDIR)/sshfs-mapper $(BINDIR)/
|
2009-03-13 13:32:32 +00:00
|
|
|
cat sshfs-mapper.1 | gzip > $(MANDIR)/man1/sshfs-mapper.1.gz
|
2009-09-15 09:57:48 +00:00
|
|
|
install -D -o root -g root -m 644 $(CURDIR)/sshfs-mapper.completion $(DESTDIR)/etc/bash_completion.d/sshfs-mapper
|
2009-08-15 17:13:52 +00:00
|
|
|
#
|
|
|
|
mkdir -p $(CONFDIR)
|
2009-03-13 13:32:32 +00:00
|
|
|
for f in `ls conf`; do \
|
2009-08-15 17:29:17 +00:00
|
|
|
cp conf/$$f $(CONFDIR)/$$f ; \
|
2009-08-15 17:13:52 +00:00
|
|
|
done
|
|
|
|
#
|
|
|
|
mkdir -p $(DOCDIR)/examples
|
|
|
|
for f in `ls examples`; do \
|
|
|
|
cat examples/$$f | gzip -f9 > $(DOCDIR)/examples/$$f.gz ; \
|
2009-03-13 13:32:32 +00:00
|
|
|
done
|