~ubuntu-branches/ubuntu/oneiric/ctioga2/oneiric

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Fourmond
  • Date: 2011-01-24 21:36:06 UTC
  • Revision ID: james.westby@ubuntu.com-20110124213606-9ettx0ugl83z0bzp
Tags: upstream-0.1
ImportĀ upstreamĀ versionĀ 0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
doc:
 
9
# to avoid partial regeneration of the documentation
 
10
        rm -rf doc              
 
11
        rdoc $(RDOC_OPTIONS)
 
12
 
 
13
 
 
14
man:
 
15
        version=`rch --print-version || echo Unkown`; cd man; ctioga2 --write-man "$$version" ctioga2.1.template > ctioga2.1
 
16
 
 
17
config-home:
 
18
        $(RUBY) setup.rb config --prefix=$(HOME) --siteruby=$(HOME)/lib/ruby --siterubyver=$(HOME)/lib/ruby
 
19
 
 
20
config:
 
21
        $(RUBY) setup.rb config
 
22
 
 
23
install:
 
24
        @ [ -r .config ] || (echo "Run make config or make config-home before running make install" ; false)
 
25
        $(RUBY) setup.rb install
 
26
 
 
27
# I'm annoyed at having to set the svn:keywords properties on
 
28
# every single file around.
 
29
propset:
 
30
        find lib -name '*.rb' \( \! -name 'utils.rb' \) | \
 
31
        xargs svn propset svn:keywords 'Date Revision'
 
32
 
 
33
# Get rid of emacs backup files
 
34
clean:
 
35
        find -name '*~' -print0 | xargs -0  rm
 
36
 
 
37
 
 
38
.PHONY: doc man install
 
 
b'\\ No newline at end of file'