Makefile.am 1.52 KB
Newer Older
Kevin Cozens's avatar
Kevin Cozens committed
1 2 3 4 5
## Process this file with automake to produce Makefile.in

SUBDIRS = \
    ext      \
    gimp-lib \
6 7
    plug-ins \
    po
Kevin Cozens's avatar
Kevin Cozens committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

if PLATFORM_WIN32
no_undefined = -no-undefined
path_separator = ;
else
path_separator = :
endif

rubybase = ruby

rubydir = $(GIMP_LIBDIR)/$(rubybase)

rubyenvdir = $(GIMP_LIBDIR)/environ
rubyinterpdir = $(GIMP_LIBDIR)/interpreters

rubyenvfile = $(rubyenvdir)/ruby.env
rubyinterpfile = $(rubyinterpdir)/ruby.interp

26 27
rubyconsolefile = ruby-fu-console

28
install-env-files:
Kevin Cozens's avatar
Kevin Cozens committed
29
	$(mkinstalldirs) '$(DESTDIR)$(rubyenvdir)'
30
	echo '$(path_separator) RUBYLIB=$${gimp_plug_in_dir}/$(rubybase)' > '$(DESTDIR)$(rubyenvfile)'
31
	cp 'ext/$(rubyconsolefile)' '$(DESTDIR)$(rubydir)'
Kevin Cozens's avatar
Kevin Cozens committed
32 33 34 35 36 37 38

install-interp-file:
	$(mkinstalldirs) '$(DESTDIR)$(rubyinterpdir)'
	echo 'ruby=$(RUBY_BIN)' > '$(DESTDIR)$(rubyinterpfile)'
	echo '/usr/bin/ruby=$(RUBY_BIN)' >> '$(DESTDIR)$(rubyinterpfile)'
	echo ':Ruby:E::rb::ruby:' >> '$(DESTDIR)$(rubyinterpfile)'

39
install-data-local: install-env-files install-interp-file
Kevin Cozens's avatar
Kevin Cozens committed
40 41 42

uninstall-local:
	rm -f '$(DESTDIR)$(rubyenvfile)' '$(DESTDIR)$(rubyinterpfile)'
43 44
	rm -f '$(DESTDIR)$(rubydir)/$(rubyconsolefile)'
	rmdir '$(DESTDIR)$(rubydir)'
Kevin Cozens's avatar
Kevin Cozens committed
45 46 47 48 49 50 51 52 53

EXTRA_DIST = \
    AUTHORS             \
    ChangeLog           \
    COPYING             \
    MAINTAINERS         \
    NEWS                \
    README              \
    autogen.sh          \
54 55
    intltool-extract.in	\
    intltool-merge.in  	\
Kevin Cozens's avatar
Kevin Cozens committed
56
    intltool-update.in  \
57
    notes.txt          	\
Kevin Cozens's avatar
Kevin Cozens committed
58 59 60 61 62 63
    todo.txt

DISTCLEANFILES = \
    intltool-extract \
    intltool-merge   \
    intltool-update