Parent

Header

A generic Header class that installs header files into $(PKGINCLUDEDIR)

Public Class Methods

new(options) click to toggle source
# File lib/makeconf/header.rb, line 5
def initialize(options)
  raise ArgumentError unless options.kind_of?(Hash)

  # KLUDGE - parent constructor will barf unless we delete our 
  #       custom options
  @namespace = options[:namespace]
  options.delete :namespace

  super(options)
end

Public Instance Methods

compile(cc) click to toggle source
# File lib/makeconf/header.rb, line 26
def compile(cc)
  mk = Makefile.new
  mk.distribute(@sources)
  return mk
end
install(installer) click to toggle source
# File lib/makeconf/header.rb, line 16
def install(installer)
  dest = '$(INCLUDEDIR)'
  dest += '/' + @namespace unless @namespace.nil?

  installer.install(
      :sources => @sources,
      :dest => dest,
      :mode => '644') 
end
makedepends() click to toggle source
# File lib/makeconf/header.rb, line 35
def makedepends
  []
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.