build/Makefile.am.marshal
author Mikael Berthe <mikael@lilotux.net>
Mon, 25 Jan 2021 20:59:00 +0100
changeset 740 f1bb5e7e9477
parent 527 2e905f83be70
permissions -rw-r--r--
Bump version to 1.5.4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
521
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     1
$(MARSHAL)-marshal.h: $(MARSHAL)-marshal.list
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     2
	(cd $(srcdir) && \
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     3
	$(GLIB_GENMARSHAL) --prefix=_$(MARSHAL)_marshal $(MARSHAL)-marshal.list --header) > xgen-gmh \
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     4
	&& (cmp -s xgen-gmh $(MARSHAL)-marshal.h || cp xgen-gmh $(MARSHAL)-marshal.h) \
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     5
	&& rm -f xgen-gmh xgen-gmh~
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     6
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     7
$(MARSHAL)-marshal.c: $(MARSHAL)-marshal.list
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     8
	(cd $(srcdir) && \
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     9
	echo "#include \"$(MARSHAL)-marshal.h\""; \
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    10
	$(GLIB_GENMARSHAL) --prefix=_$(MARSHAL)_marshal $(MARSHAL)-marshal.list --body) > xgen-gmc \
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    11
	&& cp xgen-gmc $(MARSHAL)-marshal.c \
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    12
	&& rm -f xgen-gmc xgen-gmc~
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    13
527
2e905f83be70 Fixed root Makefile
Mikael Hallendal <micke@imendio.com>
parents: 521
diff changeset
    14
BUILT_SOURCES += 				\
521
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    15
	$(MARSHAL)-marshal.h		\
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    16
	$(MARSHAL)-marshal.c		\
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    17
	$(NULL)
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    18
527
2e905f83be70 Fixed root Makefile
Mikael Hallendal <micke@imendio.com>
parents: 521
diff changeset
    19
EXTRA_DIST +=					\
521
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    20
	$(MARSHAL)-marshal.list		\
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    21
	$(NULL)