Changeset 1932e8a


Ignore:
Timestamp:
Jul 14, 2022, 4:52:25 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
4f3807d
Parents:
af75a87
Message:

Changed how cleaning is handled in makefiles. Hopefully this approach is more standard.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    raf75a87 r1932e8a  
    5252        @find libcfa -name config.status -printf "\n%h\n\t" -exec {} --config \; | sed "s/ /\n\t/g; s/\t'/\t/g; s/'\n/\n/g; s/^'//g; s/'$$//g"
    5353
    54 mostlyclean-local: @LIBCFA_TARGET_MAKEFILES@
    55         for dir in @LIBCFA_TARGET_DIRS@; do \
    56                 $(MAKE) -C $${dir} mostlyclean; \
    57         done
     54@LIBCFA_TARGET_DIRS@::
     55        $(MAKE) -C $@ $(MAKECMDGOALS)
    5856
    59 clean-local: @LIBCFA_TARGET_MAKEFILES@
    60         for dir in @LIBCFA_TARGET_DIRS@; do \
    61                 $(MAKE) -C $${dir} clean; \
    62         done
    63 
    64 distclean-local: @LIBCFA_TARGET_MAKEFILES@
    65         for dir in @LIBCFA_TARGET_DIRS@; do \
    66                 $(MAKE) -C $${dir} distclean; \
    67                 rm $${dir}/config.data; \
    68         done
     57mostlyclean clean distclean maintainer-clean: @LIBCFA_TARGET_DIRS@
  • libcfa/Makefile.am

    raf75a87 r1932e8a  
    1818ACLOCAL_AMFLAGS  = -I automake
    1919SUBDIRS = prelude src      # order important
     20
     21DISTCLEANFILES = config.data
Note: See TracChangeset for help on using the changeset viewer.