patch - How do I write a Makefile rule to apply patches using Quilt? -


i'm 1 of developers of inkscape. incorporate few modified chunks of various free libraries, in our code-base , we'd handle our patches software in more maintainable way.

i've used quilt patch tool apply patches upstream code in debian packages, , have considered using in build inkscape

i.e.,

  1. patch relevant upstream files using quilt
  2. compile source

this allow maintain pristine copy of upstream library , separate patch set, can forward upstream.

my problem aside debian documentation, haven't found examples of how neatly include quilt in makefile. can point me project this?

we use automake, if there elegant way of running "patch" rule before main build, great.

i can't point project that, i've done myself before creating new patch (which last one) creates file named patched.txt in convenient spot. makefile simple project looks this:

cxx = clang ldflags += -lstdc++ cxxflags += -wall -pedantic --std=c++11  all: patched.txt myprog  myprog: myprog.o helper.o  patched.txt: patches/series     quilt push -a  clean:     rm *.o barcode      quilt pop -a 

you may or may not wish have quilt pop -a part of clean target. in other projects, i've created separate revert target that. haven't incorporated project uses autotools, shouldn't hard.

in case patched.txt created manually using date >patched.txt it's easy see date of patch set.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -