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
|
|
|
|
cp sshfs-mapper $(BINDIR)/
|
|
|
|
cat sshfs-mapper.1 | gzip > $(MANDIR)/man1/sshfs-mapper.1.gz
|
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
|