Ticket #42: mythtv_distclean.patch

File mythtv_distclean.patch, 1.1 KB (added by mspieth <mspieth@…>, 16 years ago)
  • configure

     
    26122612if test $? -ne 0 ; then
    26132613  mv -f $TMPH $MYTH_CONFIG_H
    26142614  rm -f config.h
    2615   ln -s $MYTH_CONFIG_H config.h
    26162615else
    26172616  echo "$MYTH_CONFIG_H is unchanged"
    26182617fi
     2618if ! test -L config.h ; then
     2619  ln -s $MYTH_CONFIG_H config.h
     2620fi
    26192621
    26202622if [ ! -e config.h ] ; then
    26212623  ln -s $MYTH_CONFIG_H config.h
     
    26232625
    26242626rm -f config.mak
    26252627ln -s $MYTH_CONFIG_MAK config.mak
     2628mkdir config
     2629cat - > config/Makefile <<END
    26262630
     2631all:   
     2632qmake_all:
     2633
     2634clean:
     2635
     2636install:
     2637uninstall:
     2638
     2639distclean: clean
     2640        -rm -f ../$MYTH_CONFIG_MAK
     2641        -rm -f ../$MYTH_CONFIG_H
     2642        -rm -f ../config.mak ../config.h
     2643        -rm -f ../Makefile
     2644
     2645END
     2646
    26272647rm -f $TMPO $TMPC $TMPE $TMPS $TMPH
    26282648
    26292649qmake mythtv.pro
  • mythtv.pro

     
    1313
    1414# Directories
    1515SUBDIRS += libs filters programs themes i18n
     16# clean up config on distclean
     17SUBDIRS += config
    1618
    1719using_frontend {
    1820    SUBDIRS += setup