Skip to content

Commit

Permalink
Some changes to make clean target.
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens authored and Marco van Wieringen committed Feb 17, 2015
1 parent 5a0c869 commit b4edc29
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
7 changes: 3 additions & 4 deletions Makefile.in
Expand Up @@ -157,7 +157,6 @@ Makefiles:
clean:
@for I in ${all_subdirs} ; \
do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
@(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1)
@$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum
@$(RMF) examples/1 examples/2 examples/devices/1 examples/devices/2
@$(RMF) -r autom4te.cache
Expand All @@ -169,20 +168,20 @@ distclean:
@for I in $(all_subdirs); do (cd $$I && $(RMF) startit stopit btraceback); done
@(cd $(srcdir) && $(RMF) *~ config.cache config.h config.log config.status config.out)
@(cd $(srcdir) && $(RMF) Makefile autoconf/Make.common)
@(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1)
@$(RMF) bareos fd Makefile startmysql stopmysql startit stopit btraceback
@$(RMF) bconsole gconsole
@$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum
@$(RMF) working/* kerns-*
@$(RMF) -rf txt diff src/python src/testprogs
@$(RMF) -r txt diff src/python src/testprogs
@$(RMF) libtool
# remove files generated by configure
find . -type f -a -name "*.in" -a ! -name "control.in" | sed -e 's/.in$$//' | xargs $(RMF)

devclean:
@for I in $(all_subdirs); do (cd $$I && $(MAKE) $@ || exit 1); done
@for I in $(all_subdirs); do (cd $$I && $(RMF) startit stopit btraceback); done
@(cd $(srcdir) && $(RMF) *~ config.cache config.h config.log config.status config.out)
@(cd $(srcdir) && $(RMF) Makefile autoconf/Make.common)
@(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1)
@$(RMF) bareos fd Makefile startmysql stopmysql startit stopit btraceback
@$(RMF) bconsole gconsole
@$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum
Expand Down
4 changes: 2 additions & 2 deletions debian/Makefile
Expand Up @@ -10,12 +10,12 @@ all:
clean:
@rm -f *~ *.log
@rm -f -r tmp/*

distclean: clean
@find . -type f -a -name "*.in" | sed -e 's/.in$$//' | xargs rm -f
# control is generated during configure,
# however, for Debian builds a control file must be available before.
# Therefore create a link to control.dummy.
@ln -s control.dummy control

distclean: clean

devclean: clean
4 changes: 2 additions & 2 deletions platforms/Makefile.in
Expand Up @@ -62,17 +62,17 @@ clean:
@$(RMF) 1 2 3

distclean:
@$(RMF) Makefile
@for subdir in ${SUBDIRS}; do \
if [ -f $${subdir}/Makefile ]; then \
(cd $${subdir}; $(MAKE) distclean) \
fi; \
done
@$(RMF) Makefile

devclean:
@$(RMF) Makefile
@for subdir in ${SUBDIRS}; do \
if [ -f $${subdir}/Makefile ]; then \
(cd $${subdir}; $(MAKE) devclean) \
fi; \
done
@$(RMF) Makefile
4 changes: 2 additions & 2 deletions src/dird/Makefile.in
Expand Up @@ -116,8 +116,8 @@ libtool-clean:
@$(RMF) -r .libs _libs

clean: libtool-clean
@$(RMF) dird bareos-dir core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
@$(RMF) static-bareos-dir
@$(RMF) dird bareos-dir static-bareos-dir bareos-dbcheck
@$(RMF) core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3

realclean: clean
@$(RMF) tags bareos-dir.conf
Expand Down

0 comments on commit b4edc29

Please sign in to comment.