~gmult-team/gmult/stable

« back to all changes in this revision

Viewing changes to gmult/Makefile.am

  • Committer: Michael Terry
  • Date: 2008-09-04 15:53:08 UTC
  • Revision ID: michael.terry@ubuntu.com-20080904155308-73t4v8tvmqtjwiti
make Vala/C relationship more correct in make's eyes

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
        MultPuzzle.vala \
19
19
        TableBox.vala
20
20
 
21
 
BUILT_SOURCES = \
22
 
        gmult.stamp
23
 
 
24
 
gmult_SOURCES = \
 
21
gmult_CSOURCES = \
25
22
        $(gmult_VALASOURCES:.vala=.c) \
26
 
        $(gmult_VALASOURCES:.vala=.h) \
27
 
        $(gmult_VALASOURCES)
28
 
 
29
 
gmult.stamp: $(gmult_VALASOURCES)
 
23
        $(gmult_VALASOURCES:.vala=.h)
 
24
 
 
25
BUILT_SOURCES = $(gmult_CSOURCES)
 
26
 
 
27
gmult_SOURCES = $(gmult_CSOURCES)
 
28
 
 
29
$(gmult_CSOURCES): $(gmult_VALASOURCES)
30
30
if USE_VALAC
31
31
        $(VALAC) -C $(VALA_CFLAGS) $^
32
 
        touch $@
33
32
else
34
33
        @echo "ERROR: Valac compilation is disabled, but the C sources are out-of-date."
35
34
        @exit 1
37
36
 
38
37
gmult_LDADD = $(GTK_LIBS) @INTLLIBS@
39
38
 
40
 
EXTRA_DIST = gmult.stamp
41
 
DISTCLEANFILES = \
42
 
        $(BUILT_SOURCES) \
43
 
        $(gmult_VALASOURCES:.vala=.c) \
44
 
        $(gmult_VALASOURCES:.vala=.h)
 
39
EXTRA_DIST = $(gmult_VALASOURCES)
 
40
DISTCLEANFILES = $(BUILT_SOURCES)
45
41