5 packagedir ?
= $(datadir)/$(package
)-$(version
)
6 truepackagedir ?
= $(truedatadir
)/$(package
)-$(version
)
11 MANPAGES ?
= mailvisa
.1
12 FILES ?
= add_messages.rb calculate_scores.rb \
13 mailvisa.rb mailvisad.rb remove_messages.rb \
14 view_scores.rb wordlist.rb tokenize.rb \
19 mailvisa
: make_mailvisa.rb Makefile.cfg
20 env RUBY
='$(RUBY)' packagedir
='$(packagedir)' '$(RUBY)' \
29 install: install-bin install-man
31 install-bin
: $(BINARIES
)
32 [ -d
'$(packagedir)' ] || mkdir
-p
'$(packagedir)'
33 [ -d
'$(bindir)' ] || mkdir
-p
'$(bindir)'
34 cp
$(FILES
) '$(packagedir)/'
35 for i in
$(BINARIES
); do \
36 ln
-s
'$(truepackagedir)'/"$$i" '$(bindir)/'; \
39 install-man
: $(MANPAGES
)
40 [ -d
'$(packagedir)' ] || mkdir
-p
'$(packagedir)'
41 [ -d
'$(mandir)/man1' ] || mkdir
-p
'$(mandir)/man1'
42 cp
$(MANPAGES
) '$(packagedir)/'
43 for i in
$(MANPAGES
); do \
44 ln
-s
'$(truepackagedir)'/"$$i" '$(mandir)/man1/'; \
47 .PHONY
: all clean distclean install install-bin install-man