~indicator-applet-developers/appmenu-gtk/trunk.0.3

« back to all changes in this revision

Viewing changes to src/Makefile.am

  • Committer: Michael Terry
  • Date: 2011-05-12 06:55:24 UTC
  • mfrom: (134.1.6 appmenu-gtk)
  • Revision ID: michael.terry@canonical.com-20110512065524-duz664z3swcm9419
support gtk3 builds (thanks to Mathias Hasselmann)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
BUILT_SOURCES =
4
4
EXTRA_DIST=
5
5
 
6
 
moduledir = $(libdir)/gtk-2.0/2.10.0/menuproxies
7
6
module_LTLIBRARIES = libappmenu.la
8
7
 
9
8
libappmenu_la_SOURCES =         \
37
36
        $(GCC_FLAGS)                    \
38
37
        $(MAINTAINER_CFLAGS)
39
38
 
40
 
gen-%.xml.h: %.xml
 
39
gen-%.xml.h: $(srcdir)/%.xml
41
40
        @echo "Building $@ from $<"
42
 
        @echo "extern const char * _$(subst -,_,$(subst .,_,$(basename $<)));" > $@
 
41
        @echo "extern const char * _$(subst -,_,$(subst .,_,$(basename $(notdir $<))));" > $@
43
42
 
44
 
gen-%.xml.c: %.xml
 
43
gen-%.xml.c: $(srcdir)/%.xml
45
44
        @echo "Building $@ from $<"
46
 
        @echo "const char * _$(subst -,_,$(subst .,_,$(basename $<))) = " > $@
 
45
        @echo "const char * _$(subst -,_,$(subst .,_,$(basename $(notdir $<)))) = " > $@
47
46
        @sed -e "s:\":\\\\\":g" -e s:^:\": -e s:\$$:\\\\n\": $< >> $@
48
47
        @echo ";" >> $@
49
48