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.2 2004/04/09 19:37:19 alk-pl_rpm Exp $
10 while read PatchSet n ; do
12 [ "$PatchSet" != "PatchSet" ] && continue;
16 # In case the spec file did not explicitly list the PatchSet
17 ifeq (\$(origin Patch${n}),undefined)
18 Patch${n} := \$(package)-${n}.patch.bz2
22 Patch${n} := \$(notdir \$(Patch${n}))
24 # Add patch to the list of sources
25 SOURCES += SOURCES/\$(Patch${n})
27 # Generate uncompressed patch
28 SOURCES/\$(patsubst %.gz,%,\$(patsubst %.bz2,%,\$(Patch${n}))):
30 cvsps --cvs-direct --root \$(CVSROOT) -g -s ${n} \$(MODULE) > \$@