5 |
# Copyright (C) 2004-2005 Red Hat, Inc. |
# Copyright (C) 2004-2005 Red Hat, Inc. |
6 |
# Copyright (C) 2005 Fedora Foundation |
# Copyright (C) 2005 Fedora Foundation |
7 |
# |
# |
8 |
# $Id: Makefile.common,v 1.7 2009/10/12 21:01:25 slords Exp $ |
# $Id: Makefile.common,v 1.9 2010/03/16 15:41:16 slords Exp $ |
9 |
|
|
10 |
# Define the common dir. |
# Define the common dir. |
11 |
# This needs to happen first. |
# This needs to happen first. |
291 |
|
|
292 |
CVS_ROOT := $(shell if [ -f CVS/Root ] ; then cat CVS/Root ; fi) |
CVS_ROOT := $(shell if [ -f CVS/Root ] ; then cat CVS/Root ; fi) |
293 |
CVS_REPOSITORY := $(shell if [ -f CVS/Repository ] ; then cat CVS/Repository ; fi) |
CVS_REPOSITORY := $(shell if [ -f CVS/Repository ] ; then cat CVS/Repository ; fi) |
294 |
CVS_URL := cvs://smecontribs.cvs.sourceforge.net:/cvsroot/smecontribs?$(CVS_REPOSITORY)\#$(TAG) |
CVS_URL := cvs://smecontribs.cvs.sourceforge.net/cvsroot/smecontribs?$(CVS_REPOSITORY)\#$(TAG) |
295 |
|
|
296 |
## create a clean exported copy in $(TMPCVS) |
## create a clean exported copy in $(TMPCVS) |
297 |
export:: sources |
export:: sources |
322 |
done; |
done; |
323 |
|
|
324 |
## use this to build an srpm locally |
## use this to build an srpm locally |
325 |
|
ifneq (, $(filter contribs7 contribs8, $(BRANCH))) |
326 |
|
srpm: sources $(TARGETS) |
327 |
|
$(RPM_WITH_DIRS) $(DIST_DEFINES) --define _source_filedigest_algorithm=md5 --nodeps -bs $(SPECFILE) |
328 |
|
else |
329 |
srpm: sources $(TARGETS) |
srpm: sources $(TARGETS) |
330 |
$(RPM_WITH_DIRS) $(DIST_DEFINES) --nodeps -bs $(SPECFILE) |
$(RPM_WITH_DIRS) $(DIST_DEFINES) --nodeps -bs $(SPECFILE) |
331 |
|
endif |
332 |
|
|
333 |
test-srpm: srpm |
test-srpm: srpm |
334 |
|
|