updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / ocs / distclean-target.patch
blobce2e7bd9f698fce66b1afa787cf65a17f1d330c7
1 Description: Add a distclean target to the Makefile.
2 The distclean rules remove too much. Building the package twice will fail.
3 Author: Benjamin Drung <bdrung@debian.org>
5 --- a/Makefile.in
6 +++ b/Makefile.in
7 @@ -5,7 +5,7 @@
8 # http://projects.uebb.tu-berlin.de/opal/trac/wiki/License for details
11 -.PHONY: install default usage
12 +.PHONY: install default usage distclean
14 default: usage
16 @@ -120,3 +120,49 @@
18 dist:
19 @release/dist_tarball.sh
21 +autoconf_files = \
22 + Makefile \
23 + config.log \
24 + config.status \
25 + ocs-version \
26 + src/lib/Internal/Compiler/unixconfig.h \
27 + src/oasys/driver/SysDefs \
28 + src/oasys/driver/SysDefs.install \
29 + src/oc/dynamite/InterOpalTools.impl \
30 + src/oc/reflections/InterOpalTools.impl \
31 + src/om/scripts/dosfop \
32 + src/om/scripts/oasys \
33 + src/om/scripts/ocs \
34 + src/om/scripts/pureDosfop \
35 + src/om/specs/Specs.basic \
36 + src/om/specs/Specs.lib.opal_java \
37 + src/om/specs/Specs.lib.opal_readline \
38 + src/om/specs/Specs.lib.opal_tcl \
39 + src/om/specs/Specs.lib.opal_tk \
40 + src/om/specs/Specs.pkg.oasys \
41 + src/proofchecker/oasyspc/pdriver/ProjectDefs \
42 + src/proofchecker/oasyspc/scripts/startup.pchecker \
43 + src/proofchecker/prooflib/ProjectDefs \
44 + $(NULL)
46 +binaries = \
47 + src/browser/browser \
48 + src/oc/oc1/driver/oc1 \
49 + src/oc/oc1/driver/oc2 \
50 + src/oc/dynamite/dynamite \
51 + src/oasys/driver/oasysbin \
52 + src/oasys/compiler/execobject/executor \
53 + src/oasys/debugger/dbclient/evaluator \
54 + src/om/genmake/genmake \
55 + src/om/opalimports/opalimports \
56 + src/om/getopalname/getopalname \
57 + src/ordinatrice/ordinatrice \
58 + doc/bibopalicaman/doc.tar \
59 + doc/reflectionman/doc.tar \
60 + $(NULL)
62 +distclean:
63 + find \( -name '*.a' -o -name '*.o' \) -delete
64 + find \( -name '*.deps' -o -name '*.diag' -o -name '*.inter' -o -name '*.opt' \) -delete
65 + rm -f $(autoconf_files) $(binaries)