Changeset af193338 for Makefile.in


Ignore:
Timestamp:
May 26, 2009, 4:03:50 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
5fdab77
Parents:
30ac47f
git-author:
Anders Kaseorg <andersk@mit.edu> (05/05/09 15:23:36)
git-committer:
Anders Kaseorg <andersk@mit.edu> (05/26/09 16:03:50)
Message:
Makefile.in: Replace shell for loops with makefile patterns.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile.in

    r30ac47f raf193338  
    7474        $(RM) config.cache config.log config.status  Makefile config.h TAGS *~ core
    7575
    76 .PHONY: $(MODULE_DIRS)
     76.PHONY: $(MODULE_DIRS) $(MODULE_DIRS:%=clean_%)
    7777
    7878modules: $(MODULE_DIRS)
    79 modules_clean:
    80         for i in $(MODULE_DIRS); do \
    81                 (cd $$i && (test ! -f Makefile || $(MAKE) clean)) \
    82         done
     79modules_clean: $(MODULE_DIRS:%=clean_%)
    8380
    8481$(MODULE_DIRS): %: %/Makefile
     
    8784$(MODULE_DIRS:=/Makefile): %/Makefile: %/Makefile.PL
    8885        ( cd $(dir $@) && perl -I../../lib Makefile.PL )
     86
     87$(MODULE_DIRS:%=clean_%): clean_%:
     88        (cd $* && (test ! -f Makefile || $(MAKE) clean))
    8989
    9090proto: owl_prototypes.h
     
    128128        (cd libfaim && $(MAKE) distclean)
    129129
    130 install: all installdirs
     130install: all installdirs $(PERL_MODULES:%=module_install_%)
    131131        ${INSTALL_PROGRAM} $(EXE) ${DESTDIR}${bindir}/$(EXE)
    132132        ${INSTALL_DATA} doc/barnowl.1 ${DESTDIR}${mandir}/man1/barnowl.1
    133         ${INSTALL} -d ${DESTDIR}${datadir}/lib
    134         ${INSTALL} -d ${DESTDIR}${datadir}/modules
    135133        (cd perl/lib && tar --exclude .svn -cf - . ) | (cd ${DESTDIR}${datadir}/lib && tar -xf - )
    136         for i in $(PERL_MODULES); do \
    137                 ${INSTALL_DATA} perl/modules/$$i/$$i.par ${DESTDIR}${datadir}/modules/$$i.par; \
    138         done
    139134
    140135installdirs: mkinstalldirs
    141         ${srcdir}/mkinstalldirs ${DESTDIR}${bindir} ${DESTDIR}${mandir}/man1 ${DESTDIR}${datadir}
     136        ${srcdir}/mkinstalldirs \
     137            ${DESTDIR}${bindir} \
     138            ${DESTDIR}${mandir}/man1 \
     139            ${DESTDIR}${datadir}/lib \
     140            ${DESTDIR}${datadir}/modules
     141
     142.PHONY: $(PERL_MODULES:%=module_install_%)
     143
     144$(PERL_MODULES:%=module_install_%): module_install_%: installdirs
     145        ${INSTALL_DATA} perl/modules/$*/$*.par ${DESTDIR}${datadir}/modules/$*.par
    142146
    143147# For emacs flymake-mode
Note: See TracChangeset for help on using the changeset viewer.