-
Notifications
You must be signed in to change notification settings - Fork 138
/
Makefile.in
42 lines (30 loc) · 977 Bytes
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
SHELL=/bin/sh
# Path to ruby interpreter
RUBY=@RUBY@
# Any extra options from configure script to pass to 'setup.rb config'
RUBY_CONFIG_OPTS=@RUBY_CONFIG_OPTS@
# gem install expects to find these 2 lines
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
all: .config
$(RUBY) setup.rb setup
install:
$(RUBY) setup.rb install
clean: .config
$(RUBY) setup.rb clean
distclean: .config
$(RUBY) setup.rb clean
rm -f Makefile ext/RMagick/extconf.rb metaconfig ext/RMagick/rmagick_config.h
rm -f ext/RMagick/Makefile config.cache config.log config.status
rm -rf autom4te.cache
rm -f doc/ex/.examples
uninstall: .config
$(RUBY) uninstall.rb $(RUBY_CONFIG_OPTS)
.config: metaconfig
if test -n "$(RUBYLIBDIR)"; then \
RUBYLIBDIR=--rbdir="$(RUBYLIBDIR)"; \
fi; \
if test -n "$(RUBYARCHDIR)"; then \
RUBYARCHDIR=--sodir="$(RUBYARCHDIR)"; \
fi; \
$(RUBY) setup.rb config $$RUBYLIBDIR $$RUBYARCHDIR $(RUBY_CONFIG_OPTS)