Makefile.am 2.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
PDBGEN_BACKUP = 0
PDBGEN_GROUPS =

pdb_sources = \
	pdb/brush_select.pdb	\
	pdb/brushes.pdb		\
	pdb/channel.pdb		\
	pdb/channel_ops.pdb	\
	pdb/color.pdb		\
	pdb/convert.pdb		\
	pdb/drawable.pdb	\
	pdb/edit.pdb		\
13
	pdb/fileops.pdb		\
14 15 16 17 18 19 20 21
	pdb/floating_sel.pdb	\
	pdb/gdisplay.pdb	\
	pdb/gimage.pdb		\
	pdb/gimage_mask.pdb	\
	pdb/gimprc.pdb		\
	pdb/gradient.pdb	\
	pdb/gradient_select.pdb	\
	pdb/guides.pdb		\
22
	pdb/interface.pdb	\
23 24 25 26 27 28 29
	pdb/layer.pdb		\
	pdb/misc.pdb		\
	pdb/palette.pdb		\
	pdb/parasite.pdb	\
	pdb/paths.pdb		\
	pdb/pattern_select.pdb	\
	pdb/patterns.pdb	\
30
	pdb/plug_in.pdb		\
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
	pdb/procedural_db.pdb	\
	pdb/text_tool.pdb	\
	pdb/tools.pdb		\
	pdb/undo.pdb		\
	pdb/unit.pdb

EXTRA_DIST = \
	README		\
	app.pl		\
	enumgen.pl	\
	groups.pl	\
	lib.pl		\
	pdb.pl		\
	pdbgen.pl	\
	stddefs.pdb	\
	util.pl		\
	$(pdb_sources)

Manish Singh's avatar
Stuff  
Manish Singh committed
49
enum_headers = \
50 51 52 53 54 55 56 57 58
	../../app/appenv.h		\
	../../app/blend.h		\
	../../app/bucket_fill.h		\
	../../app/channel.h		\
	../../app/channel_ops.h		\
	../../app/clone.h		\
	../../app/color_balance.h	\
	../../app/convert.h		\
	../../app/convolve.h		\
59
	../../app/dodgeburn.h		\
60 61 62 63 64 65 66 67 68 69 70 71 72
	../../app/eraser.h		\
	../../app/gimpdrawable.h	\
	../../app/gimpimage.h		\
	../../app/hue_saturation.h	\
	../../app/layer.h		\
	../../app/layerF.h		\
	../../app/lut_funcs.h		\
	../../app/paint_core.h		\
	../../app/paint_funcs.h		\
	../../app/plug_in.h		\
	../../app/procedural_db.h	\
	../../app/shear_tool.h		\
	../../app/text_tool.h
73 74

pdb_scripts = \
75 76 77 78 79 80
	pdbgen.pl	\
	stddefs.pdb	\
	pdb.pl		\
	util.pl		\
	enums.pl	\
	groups.pl
81 82 83

$(srcdir)/enums.pl: stamp-enums
	@:
84
stamp-enums: $(srcdir)/enumgen.pl $(enum_headers) Makefile.am
85 86 87
	rootme=`pwd`; \
	cd $(srcdir) && $(PERL) enumgen.pl $(enum_headers) \
	&& echo timestamp > $$rootme/stamp-enums
88 89 90

$(srcdir)/groups.pl: stamp-groups
	@:
Elliot Lee's avatar
Elliot Lee committed
91

92
stamp-groups: Makefile.am
93
	rootme=`pwd`; cd $(srcdir) \
Elliot Lee's avatar
Elliot Lee committed
94 95
	&& echo "# This file is autogenerated" > groups.pl.tmp \
	&& echo "@groups = qw(" >> groups.pl.tmp \
96 97
	&& (for pdb in $(pdb_sources); do \
	      group=`echo $$pdb | sed -e 's%pdb/\([^.]*\)\..*%\1%'`; \
Elliot Lee's avatar
Elliot Lee committed
98
	      echo "    $$group" >> groups.pl.tmp; \
99
	    done) \
Elliot Lee's avatar
Elliot Lee committed
100
	&& echo ");" >> groups.pl.tmp \
101 102
	&& (cmp -s groups.pl.tmp groups.pl || cp groups.pl.tmp groups.pl) \
	&& rm groups.pl.tmp \
103
	&& echo timestamp > $$rootme/stamp-groups
104 105

stamp-app: $(srcdir)/app.pl $(pdb_scripts) $(pdb_sources)
106 107 108 109 110 111
	rootme=`pwd`; \
	destdir=`cd $(top_srcdir) && pwd`; export destdir; \
	cd $(srcdir) && \
	   PDBGEN_BACKUP=$(PDBGEN_BACKUP) PDBGEN_GROUPS=$(PDBGEN_GROUPS) \
	   $(PERL) pdbgen.pl app \
	&& echo timestamp > $$rootme/stamp-app
112 113

all-local: stamp-app