aboutsummaryrefslogtreecommitdiff
path: root/src/clients/gtkpaludis/vtemm/Makefile.am
blob: 025e4dfb01bba2aad22d9a47d8f67dc4b5d079ed (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
EXTRA_DIST = \
	terminal_widget.hg terminal_widget.ccg \
	reaper.hg          reaper.ccg

AM_CXXFLAGS = -I$(top_srcdir) @PALUDIS_CXXFLAGS@ @PALUDIS_CXXFLAGS_NO_WOLD_STYLE_CAST@ \
	      @PALUDIS_CXXFLAGS_NO_WSHADOW@ @PALUDIS_CXXFLAGS_NO_WREDUNDANT_DECLS@

DEFS = \
	-DSYSCONFDIR=\"$(sysconfdir)\" \
	-DLIBEXECDIR=\"$(libexecdir)\" \
	-DGLIBMM_EXCEPTIONS_ENABLED=1

vte_generated_sources = \
	terminal_widget.cc terminal_widget.hh private/terminal_widget_p.hh \
	reaper.cc          reaper.hh          private/reaper_p.hh

SUBDIRS = defs converts .

BUILT_SOURCES = terminal_widget.hh reaper.hh $(vte_generated_sources)

# automake is rather weird on this one...
automake-deps-hack.tmp :
	$(MAKE) -C defs
	touch $@

terminal_widget.cc private/terminal_widget_p.hh : terminal_widget.hh
terminal_widget.hh : terminal_widget.hg terminal_widget.ccg automake-deps-hack.tmp
	mkdir -p private
	@GMMPROC@ --unwrapped -I converts --defs defs terminal_widget . .
	sed -e 's@/\* vim: set @/* vim: set ro @' < ./terminal_widget.h > ./terminal_widget.hh
	rm terminal_widget.h
	mv ./terminal_widget.cc ./terminal_widget.cc.tmp
	sed \
	    -e 's@#include <vtemm/terminal_widget.h>@#include "terminal_widget.hh"@' \
	    -e 's@#include <vtemm/private/terminal_widget_p.h>@#include "private/terminal_widget_p.hh"@' \
	    -e 's@/\* vim: set @/* vim: set ro @' \
	    < ./terminal_widget.cc.tmp > ./terminal_widget.cc
	rm ./terminal_widget.cc.tmp
	mv ./private/terminal_widget_p.h ./private/terminal_widget_p.hh

reaper.cc private/reaper_p.hh : reaper.hh
reaper.hh : reaper.hg reaper.ccg automake-deps-hack.tmp
	mkdir -p private
	@GMMPROC@ --unwrapped -I converts --defs defs reaper . .
	sed -e 's@/\* vim: set @/* vim: set ro @' < ./reaper.h > ./reaper.hh
	rm reaper.h
	mv ./reaper.cc ./reaper.cc.tmp
	sed \
	    -e 's@#include <vtemm/reaper.h>@#include "reaper.hh"@' \
	    -e 's@#include <vtemm/private/reaper_p.h>@#include "private/reaper_p.hh"@' \
	    -e 's@/\* vim: set @/* vim: set ro @' \
	    < ./reaper.cc.tmp > ./reaper.cc
	rm ./reaper.cc.tmp
	mv ./private/reaper_p.h ./private/reaper_p.hh

noinst_LIBRARIES = libvtemm.a

nodist_libvtemm_a_SOURCES = \
	$(vte_generated_sources)

INCLUDES = $(gtkmm_CFLAGS) $(vte_CFLAGS)

clean-local :
	rm -fr private || true

CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda $(vte_generated_sources) automake-deps-hack.tmp
MAINTAINERCLEANFILES = Makefile.in

built-sources : $(BUILT_SOURCES)
	for s in `echo $(SUBDIRS) | tr -d .` ; do $(MAKE) -C $$s built-sources || exit 1 ; done

distcheck-deps-local : $(DISTCHECK_DEPS)

distcheck-deps : distcheck-deps-subdirs

distcheck-deps-subdirs :
	for s in $(SUBDIRS) . ; do if test x$$s = x. ; then $(MAKE) distcheck-deps-local || exit 1 ; \
	    else $(MAKE) -C $$s distcheck-deps || exit 1 ; fi ; done