Skip to content

Commit

Permalink
Add make clean-contrib
Browse files Browse the repository at this point in the history
Also clean up contribs with make distclean and make mrproper.

Bug 15943
  • Loading branch information
mcmult authored and wickberg committed Feb 20, 2023
1 parent 3be5d33 commit bbcf7ae
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 12 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ MAINTAINERCLEANFILES = \
slurm/slurm_version.h \
stamp-h.in

distclean-local:
# Cleanup contribs with distclean/mrproper
distclean-contrib:
@cd contribs && \
$(MAKE) distclean && \
cd ..;

distclean-local: distclean-contrib
-(cd $(top_srcdir) && rm -rf autom4te*.cache autoscan.*)
-(cd $(top_srcdir) && rm -rf $(PACKAGE)-*)

Expand All @@ -41,3 +47,8 @@ install-contrib:
@cd contribs && \
$(MAKE) DESTDIR=$(DESTDIR) install && \
cd ..;

clean-contrib:
@cd contribs && \
$(MAKE) clean && \
cd ..;
13 changes: 12 additions & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,13 @@ uninstall-am: uninstall-pkgincludeHEADERS
.PRECIOUS: Makefile


distclean-local:
# Cleanup contribs with distclean/mrproper
distclean-contrib:
@cd contribs && \
$(MAKE) distclean && \
cd ..;

distclean-local: distclean-contrib
-(cd $(top_srcdir) && rm -rf autom4te*.cache autoscan.*)
-(cd $(top_srcdir) && rm -rf $(PACKAGE)-*)

Expand All @@ -870,6 +876,11 @@ install-contrib:
$(MAKE) DESTDIR=$(DESTDIR) install && \
cd ..;

clean-contrib:
@cd contribs && \
$(MAKE) clean && \
cd ..;

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

0 comments on commit bbcf7ae

Please sign in to comment.