Debian Codegraph @

Makefile

raw
1 # Small makefile to handle very small details of installation...
2
3 RUBY = ruby
4
5 # --diagram is way too painful.
6 RDOC_OPTIONS = --exclude setup.rb -m CTioga2::PlotMaker
7
8 install:
9 @ [ -r .config ] || (echo "Run make config or make config-home before running make install" ; false)
10 $(RUBY) setup.rb install
11
12 doc:
13 # to avoid partial regeneration of the documentation
14 rm -rf doc
15 rdoc $(RDOC_OPTIONS)
16
17
18 man:
19 version=`rch --print-version || echo Unkown`; cd man; ctioga2 --write-man "$$version" ctioga2.1.template > ctioga2.1
20
21 config-home:
22 $(RUBY) setup.rb config --prefix=$(HOME) --siteruby=$(HOME)/lib/ruby --siterubyver=$(HOME)/lib/ruby
23
24 config:
25 $(RUBY) setup.rb config
26
27
28 # I'm annoyed at having to set the svn:keywords properties on
29 # every single file around.
30 propset:
31 find lib -name '*.rb' \( \! -name 'utils.rb' \) | \
32 xargs svn propset svn:keywords 'Date Revision'
33
34 # Get rid of emacs backup files
35 clean:
36 find -name '*~' -print0 | xargs -0 rm
37
38
39 .PHONY: doc man install