summaryrefslogtreecommitdiff
path: root/src/gimp/Makefile.am
blob: 5ec870076aeafe54176408c03b9fd59ba7f8ca87 (plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
## $Id: Makefile.am,v 1.18 2001/10/10 23:05:16 rlk Exp $
## Copyright (C) 2000 Roger Leigh
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

## Process this file with automake to produce Makefile.in.

AUTOMAKE_OPTIONS = 1.4 gnu

@SET_MAKE@

MAINT_CHARSET = latin1


## Variables

AM_CFLAGS = $(GNUCFLAGS)
INCLUDES = @INCLUDES@ $(GIMP_CFLAGS) $(LIBGIMPPRINT_CFLAGS)
LIBS = @LIBS@ ../../lib/libprintut.la $(INTLLIBS) ../../lib/libprintut.la

libexecdir = $(gimptool_prefix)/plug-ins


## Programs

GIMP_BIN = print

libexec_PROGRAMS = @GIMP_BIN@

EXTRA_PROGRAMS = print

print_SOURCES = \
	print-image-gimp.c \
	print-intl.h \
	print.c \
	gimp_color_window.c \
	gimp_main_window.c \
	print_gimp.h
print_LDADD = $(GIMP_LIBS) $(LIBGIMPPRINT_LIBS) ../../lib/libprintut.la
print_DEPENDENCIES = $(LIBGIMPPRINT_LIBS)


## Rules

install-libexecPROGRAMS: $(libexec_PROGRAMS)
	@DESTDIR='$(DESTDIR)'; export DESTDIR;\
	list='$(libexec_PROGRAMS)'; for p in $$list; do \
	  if test -f $$p; then \
	    if test -f .libs/$$p; then \
	      cd .libs; \
	    fi; \
	    echo $(GIMPTOOL) --install-@PLUG_IN_PATH@ $$p; \
            $(GIMPTOOL) --install-@PLUG_IN_PATH@ $$p; \
	  else :; fi; \
	done

uninstall-libexecPROGRAMS:
	@DESTDIR='$(DESTDIR)'; export DESTDIR;\
	list='$(libexec_PROGRAMS)'; for p in $$list; do \
	    echo $(GIMPTOOL) --uninstall-@PLUG_IN_PATH@ "$$p"; \
            $(GIMPTOOL) --uninstall-@PLUG_IN_PATH@ "$$p"; \
	    echo $(GIMPTOOL) --uninstall-admin-bin "$$p"; \
	    $(GIMPTOOL) --uninstall-admin-bin "$$p"; \
	done; \
	exit 0

$(LIBGIMPPRINT_LIBS):
	cd ../main ; \
	$(MAKE)


## Clean

CLEANFILES = $(EXTRA_PROGRAMS)
MAINTAINERCLEANFILES = Makefile.in