Changeset 2770


Ignore:
Timestamp:
Jun 12, 2003, 1:21:10 AM (17 years ago)
Author:
ssen
Message:

Support a "make distclean" target. "clean" just removes built binaries
and config files. "distclean" restores the source tree to a fresh checkout
Bug: 597
Submitted by: Shantonu Sen <ssen@…>

Location:
trunk/base
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/Makefile.in

    r2620 r2770  
    11SUBDIR= doc src
     2
     3include Mk/dports.subdir.mk
    24
    35all:: Mk/dports.autoconf.mk
    46
    57clean::
     8
     9distclean:: clean
    610        rm -f config.log config.status
    7 
    8 include Mk/dports.subdir.mk
     11        rm -f Makefile Mk/dports.autoconf.mk
  • trunk/base/Mk/dports.subdir.mk

    r1511 r2770  
    11.PHONY : all
    2 .PHONY : clean
     2.PHONY : clean distclean
    33.PHONY : install
    44
     
    99        done
    1010
    11 clean::
     11clean distclean::
    1212        @for subdir in $(SUBDIR); do\
    1313                echo ===\> making $@ in ${DIRPRFX}$$subdir; \
  • trunk/base/Mk/dports.tea.mk

    r2620 r2770  
    1010        rm -f ${OBJS} ${SHLIB_NAME}
    1111
     12distclean:: clean
     13
    1214install:: all
    1315        mkdir -p ${INSTALLDIR}
  • trunk/base/doc/Makefile

    r2101 r2770  
    11MAN7=           portfile.7 portstyle.7
    22INSTALLDIR=     ${DESTDIR}${PREFIX}
     3
     4include ../Mk/dports.mk
    35
    46prefix.mtree:
     
    1113        rm -f prefix.mtree
    1214
     15distclean: clean
     16
    1317install:
    1418        mkdir -p ${DESTDIR}${ETCDIR}
    1519        mkdir -p ${INSTALLDIR}
    16        
     20
    1721        cat prefix.mtree | mtree -U -d -e -p ${INSTALLDIR} > /dev/null
    1822        @if [ ! -e ${DESTDIR}/${ETCDIR}/ports.conf ]; then \
     
    3135        install -o ${DSTUSR} -g ${DSTGRP} -m 444 portfile.7 ${INSTALLDIR}/man/man7
    3236        install -o ${DSTUSR} -g ${DSTGRP} -m 444 portstyle.7 ${INSTALLDIR}/man/man7
    33 
    34 include ../Mk/dports.mk
  • trunk/base/src/cflib1.0/Makefile

    r2620 r2770  
    1 include ../../Mk/dports.mk
    2 include ../../Mk/dports.autoconf.mk
    3 
    41OBJS=           CFLib.o
    52SHLIB_NAME=     CFLib${SHLIB_SUFFIX}
     
    74INSTALLDIR= ${DESTDIR}${datadir}/darwinports/Tcl/cflib1.0
    85
     6include ../../Mk/dports.mk
     7include ../../Mk/dports.autoconf.mk
    98include ../../Mk/dports.tea.mk
  • trunk/base/src/darwinports1.0/Makefile

    r2620 r2770  
    11SRCS=           darwinports.tcl darwinports_dlist.tcl
    22INSTALLDIR=     ${TCL_PACKAGE_DIR}/darwinports1.0
     3
     4include ../../Mk/dports.mk
     5include ../../Mk/dports.autoconf.mk
    36
    47all:
    58
    69clean:
     10
     11distclean: clean
    712
    813install:
     
    1217        done
    1318        @../pkg_mkindex.tcl ${INSTALLDIR}
    14 
    15 include ../../Mk/dports.mk
    16 include ../../Mk/dports.autoconf.mk
  • trunk/base/src/port/Makefile

    r2037 r2770  
    11MAN1=           port.1
    22INSTALLDIR=     ${DESTDIR}${PREFIX}
     3
     4include ../../Mk/dports.mk
    35
    46mkdirs:
     
    1113clean:
    1214
     15distclean: clean
     16
    1317install: mkdirs
    1418        install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 port.1 ${INSTALLDIR}/man/man1
     
    1620        install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 portall.tcl ${INSTALLDIR}/bin/portall
    1721        install -c -o ${DSTUSR} -g ${DSTGRP} -m 555 portindex.tcl ${INSTALLDIR}/bin/portindex
    18 
    19 include ../../Mk/dports.mk
  • trunk/base/src/port1.0/Makefile

    r2731 r2770  
    99SUBDIR=         resources
    1010
     11include ../../Mk/dports.subdir.mk
     12include ../../Mk/dports.autoconf.mk
     13include ../../Mk/dports.mk
     14
    1115all::
    1216
    1317clean::
     18
     19distclean:: clean
    1420
    1521install::
     
    1925        done
    2026        ../pkg_mkindex.tcl ${INSTALLDIR}
    21 
    22 include ../../Mk/dports.subdir.mk
    23 include ../../Mk/dports.autoconf.mk
    24 include ../../Mk/dports.mk
  • trunk/base/src/port1.0/resources/Makefile

    r2720 r2770  
    11SUBDIR=         package sitelists
     2INSTALLDIR=     ${DESTDIR}${datadir}/darwinports/resources/port1.0/
     3RSRCS=
    24
    3 INSTALLDIR=     ${DESTDIR}${datadir}/darwinports/resources/port1.0/
    4 
    5 RSRCS=
     5include ../../../Mk/dports.subdir.mk
     6include ../../../Mk/dports.autoconf.mk
     7include ../../../Mk/dports.mk
    68
    79install::
     
    1012                install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}; \
    1113        done
    12 
    13 include ../../../Mk/dports.subdir.mk
    14 include ../../../Mk/dports.autoconf.mk
    15 include ../../../Mk/dports.mk
  • trunk/base/src/port1.0/resources/package/Makefile

    r2620 r2770  
    11INSTALLDIR=     ${DESTDIR}${datadir}/darwinports/resources/port1.0/package
     2RSRCS=          background.tiff
    23
    3 RSRCS=          background.tiff
     4include ../../../../Mk/dports.mk
     5include ../../../../Mk/dports.autoconf.mk
    46
    57all:
    68
    79clean:
     10
     11distclean: clean
    812
    913install:
     
    1216                install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}; \
    1317        done
    14 
    15 include ../../../../Mk/dports.mk
    16 include ../../../../Mk/dports.autoconf.mk
  • trunk/base/src/port1.0/resources/sitelists/Makefile

    r2720 r2770  
    33RSRCS=          master_sites.tcl
    44
     5include ../../../../Mk/dports.mk
     6
    57all:
    68
    79clean:
     10
     11distclean: clean
    812
    913install:
     
    1216                install -c -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}; \
    1317        done
    14 
    15 include ../../../../Mk/dports.mk
Note: See TracChangeset for help on using the changeset viewer.