3 # Hack to generate patch rules for make < 3.80
5 # Copyright (c) 2003 The Trustees of Princeton University (Trustees).
7 # $Id: Patchrules,v 1.1 2004/04/09 19:24:00 mlh-pl_rpm Exp $
10 while read PatchSet n ; do
12 [ "$PatchSet" != "PatchSet" ] && continue;
15 # In case the spec file did not explicitly list the PatchSet
16 ifeq (\$(origin Patch${n}),undefined)
17 Patch${n} := \$(package)-${n}.patch.bz2
21 Patch${n} := \$(notdir \$(Patch${n}))
23 # Add patch to the list of sources
24 SOURCES += SOURCES/\$(Patch${n})
26 # Generate uncompressed patch
27 SOURCES/\$(patsubst %.gz,%,\$(patsubst %.bz2,%,\$(Patch${n}))):
29 cvsps --cvs-direct --root \$(CVSROOT) -g -s ${n} \$(MODULE) > \$@