30 lines
1.1 KiB
Makefile
30 lines
1.1 KiB
Makefile
# Makefile for source rpm: dietlibc
|
|
# $Id: Makefile,v 1.1 2005/03/04 00:52:22 ensc Exp $
|
|
NAME := dietlibc
|
|
SPECFILE = $(firstword $(wildcard *.spec))
|
|
|
|
define find-makefile-common
|
|
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
endef
|
|
|
|
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
|
|
ifeq ($(MAKEFILE_COMMON),)
|
|
# attept a checkout
|
|
define checkout-makefile-common
|
|
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
endef
|
|
|
|
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
endif
|
|
|
|
include $(MAKEFILE_COMMON)
|
|
|
|
|
|
CVS_BASEVER = 0.31
|
|
CVS_DATE := $(shell date +'%Y%m%d' -d '-1 day')
|
|
_cvs_suffix = ${CVS_BASEVER}.${CVS_DATE}
|
|
|
|
cvs-sources:
|
|
cd ${DESTDIR} . && cvs -d :pserver:cvs@cvs.fefe.de:/cvs -z9 export -D${CVS_DATE} -d dietlibc-${_cvs_suffix} dietlibc
|
|
cd ${DESTDIR} . && tar cjf dietlibc-${_cvs_suffix}.tar.bz2 dietlibc-${_cvs_suffix} --owner root --group root
|