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 36 37 38 39 40
|
Description: Remove Makefile in distclean rule
Also, add prerequisites clean and distclean to the distclean and
maintainer-clean rules, respectively, and precede the rm commands in
the clean and maintainer-clean rules by the "-" prefix, such that
make will not stop if some files have already been cleaned. Finally,
maintainer-clean is added as prerequisite to the .PHONY target.
Author: Rafale Laboissière <rafael@debian.org>
Forwarded: https://savannah.gnu.org/bugs/index.php?62759
Last-Update: 2022-07-13
--- octave-optim-1.6.2.orig/src/Makefile.in
+++ octave-optim-1.6.2/src/Makefile.in
@@ -57,7 +57,7 @@ OCTSOURCEFILES := $(addsuffix .cc,$(base
DSFILES := $(addsuffix .docstrings,$(OCTSOURCEFILES))
MFILES := $(wildcard *.m) $(wildcard ../inst/*.m)
-.PHONY: all clean distclean doc prebuild html
+.PHONY: all clean distclean maintainer-clean doc prebuild html
.INTERMEDIATE: MFDOCSTRINGS $(DSFILES)
@@ -137,12 +137,12 @@ RDEFUNX_DLD := DEFUNX_DLD_REPLACEMENT_FO
| $(CXX) -x c++ -D'$(RDEFUN_DLD)(name,doc)=printf("%c" #name "\n@c " #name " $<\n" doc "\n\n", 0x1D);' -o $@ -
clean:
- $(RM) *.o octave-core *.oct *.cc.docstrings MFDOCSTRINGS *~
+ -$(RM) *.o octave-core *.oct *.cc.docstrings MFDOCSTRINGS *~
-distclean:
- $(RM) *.o octave-core *.oct *.cc.docstrings config.h \
- config.log config.status MFDOCSTRINGS *~
+distclean: clean
+ -$(RM) *.o octave-core *.oct *.cc.docstrings config.h \
+ config.log config.status MFDOCSTRINGS *~ Makefile
-maintainer-clean:
- $(RM) *.o *.oct octave-core *.cc.docstrings config.h \
+maintainer-clean: distclean
+ -$(RM) *.o *.oct octave-core *.cc.docstrings config.h \
config.log config.status MFDOCSTRINGS *~ $(INFOFILE) $(TEXIFILE)
|