~ubuntu-branches/ubuntu/vivid/sgt-puzzles/vivid

« back to all changes in this revision

Viewing changes to Recipe

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-10-01 22:10:50 UTC
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: package-import@ubuntu.com-20141001221050-h63oyzudv90umb3t
Tags: upstream-20140928.r10274
ImportĀ upstreamĀ versionĀ 20140928.r10274

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
!name puzzles
10
10
 
11
 
!makefile gtk Makefile
 
11
!makefile gtk Makefile.gtk
 
12
!makefile am Makefile.am
12
13
!makefile vc Makefile.vc
13
14
!makefile wce Makefile.wce
14
15
!makefile cygwin Makefile.cyg
92
93
        rm -f raw.dmg devicename
93
94
!end
94
95
 
95
 
# Version management.
96
 
!begin vc
97
 
version.obj: *.c *.h
98
 
        cl $(VER) $(CFLAGS) /c version.c
99
 
!end
100
 
!specialobj vc version
101
 
!begin wce
102
 
version.obj: *.c *.h
103
 
        $(CC) $(VER) $(CFLAGS) /c version.c
104
 
!end
105
 
!specialobj wce version
106
 
!begin cygwin
107
 
version.o: FORCE;
108
 
FORCE:
109
 
        $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c version.c
110
 
!end
111
 
!specialobj cygwin version
112
 
# For Unix, we also need the gross MD5 hack that causes automatic
113
 
# version number selection in release source archives.
114
 
!begin gtk
115
 
version.o: version.c version2.def
116
 
        $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version2.def` -c version.c
117
 
version2.def: FORCE
118
 
        if test -z "$(VER)" && test -f manifest && md5sum -c manifest; then \
119
 
                cat version.def > version2.def.new; \
120
 
        elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \
121
 
                echo "-DREVISION=`svnversion .`" >version2.def.new; \
122
 
        else \
123
 
                echo "$(VER)" >version2.def.new; \
124
 
        fi && \
125
 
        if diff -q version2.def.new version2.def; then \
126
 
                rm version2.def.new; \
127
 
        else \
128
 
                mv version2.def.new version2.def; \
129
 
        fi
130
 
.PHONY: FORCE
131
 
!end
132
 
!specialobj gtk version
133
 
!begin nestedvm
134
 
version.o: version.c version2.def
135
 
        $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version2.def` -c version.c
136
 
version2.def: FORCE
137
 
        if test -z "$(VER)" && test -f manifest && md5sum -c manifest; then \
138
 
                cat version.def > version2.def.new; \
139
 
        elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \
140
 
                echo "-DREVISION=`svnversion .`" >version2.def.new; \
141
 
        else \
142
 
                echo "$(VER)" >version2.def.new; \
143
 
        fi && \
144
 
        if diff -q version2.def.new version2.def; then \
145
 
                rm version2.def.new; \
146
 
        else \
147
 
                mv version2.def.new version2.def; \
148
 
        fi
149
 
.PHONY: FORCE
150
 
!end
151
 
!specialobj nestedvm version
152
 
# For OS X, this is made more fiddly by the fact that we don't have
153
 
# md5sum readily available. We do, however, have `md5 -r' which
154
 
# generates _nearly_ the same output, but it has no check function.
155
 
!begin osx
156
 
version.ppc.o: version.c version2.def
157
 
        $(CC) -arch ppc $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version2.def` -c version.c -o $@
158
 
version.i386.o: version.c version2.def
159
 
        $(CC) -arch i386 $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version2.def` -c version.c -o $@
160
 
version2.def: FORCE
161
 
        if test -z "$(VER)" && test -f manifest && (md5 -r `awk '{print $$2}' manifest` | diff -w manifest -); then \
162
 
                cat version.def > version2.def.new; \
163
 
        elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \
164
 
                echo "-DREVISION=`svnversion .`" >version2.def.new; \
165
 
        else \
166
 
                echo "$(VER)" >version2.def.new; \
167
 
        fi && \
168
 
        if diff -q version2.def.new version2.def; then \
169
 
                rm version2.def.new; \
170
 
        else \
171
 
                mv version2.def.new version2.def; \
172
 
        fi
173
 
.PHONY: FORCE
174
 
!end
175
 
!specialobj osx version
 
96
!begin am
 
97
bin_PROGRAMS = $(GAMES)
 
98
!end
 
99
!begin am_begin
 
100
GAMES =
 
101
!end
176
102
 
177
103
# make install for Unix.
178
104
!begin gtk