Sha256: f27753c7412fdc6db0c215b62c9ad9c70c55341d37e8dbad0e5fd920a2475c2f

Contents?: true

Size: 963 Bytes

Versions: 7

Compression:

Stored size: 963 Bytes

Contents

SHELL = /bin/sh
RUBY = ruby
RACC = racc
RACCFLAGS = -E
INSTALL = $(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)'
MKDIR   = $(RUBY) -r ftools -e 'File::makedirs(*ARGV)'
RM      = $(RUBY) -r ftools -e 'File::rm_f(*Dir[ARGV.join(" ")])'

sitedir = $(DESTDIR)

parse = parse.rb
dump = lib/quanty/units.dump

all: $(parse) 

$(parse): parse.y
	$(RACC) $(RACCFLAGS) -o $(parse) parse.y

$(dump): units.dat
	$(RUBY) mkdump.rb $(dump)

clean: # $(parse) $(dump)
	@$(RM) $(parse) $(dump)

install: $(sitedir)/quanty/units.dump

site-install: $(sitedir)/quanty/units.dump

$(sitedir)/quanty/units.dump: $(dump)
	@$(MKDIR) $(sitedir)/
	@$(INSTALL) lib//quanty.rb $(sitedir)//quanty.rb
	@$(MKDIR) $(sitedir)/quanty
	@$(INSTALL) lib/quanty/main.rb $(sitedir)/quanty/main.rb
	@$(INSTALL) lib/quanty/fact.rb $(sitedir)/quanty/fact.rb
	@$(INSTALL) lib/quanty/parse.rb $(sitedir)/quanty/parse.rb
	@$(INSTALL) lib/quanty/units.dump $(sitedir)/quanty/units.dump

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
phys-units-0.9.6 lib/phys/units/Makefile
phys-units-0.9.5 lib/phys/units/Makefile
phys-units-0.9.4 lib/phys/units/Makefile
phys-units-0.9.3 lib/phys/units/Makefile
phys-units-0.9.2 lib/phys/units/Makefile
phys-units-0.9.1 lib/phys/units/Makefile
phys-units-0.9.0 lib/phys/units/Makefile