1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Description: Fix cleaning rules
+ In Makefile, create distclean rule and remove distclean stuff from the clean rule
+ In src/Makefile, create distclean target
+ Prefix the rm commands with '-" where appropriate
Author: Rafael Laboissière <rafael@debian.org>
Forwarded: https://savannah.gnu.org/bugs/?62770
Last-Update: 2022-07-12
--- octave-sparsersb-1.0.9.orig/Makefile
+++ octave-sparsersb-1.0.9/Makefile
@@ -104,7 +104,8 @@ run: src/sparsersb.oct
$(OCTAVE) --persist --path "inst/" --path "src/"
clean:
- $(RM) -r $(TARGET_DIR)
+ -$(RM) -r $(TARGET_DIR)
$(MAKE) -C src clean
- $(RM) -rf src/autom4te.cache
- $(RM) src/Makeconf src/config.log src/config.status src/configure
+
+distclean: clean
+ $(MAKE) -C src distclean
--- octave-sparsersb-1.0.9.orig/src/Makefile
+++ octave-sparsersb-1.0.9/src/Makefile
@@ -60,6 +60,10 @@ check: tests
clean:
-$(RM) *.o octave-core core *.oct *~ tags
+distclean: clean
+ $(RM) -rf autom4te.cache
+ -$(RM) Makeconf config.log config.status
+
srut:
awk -f srut.awk < sparsersb.cc > sparsersb.cc.new
mv sparsersb.cc.new sparsersb.cc
|