diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2000-02-21 03:12:45 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2000-02-21 03:12:45 +0000 |
commit | 8dbcaede9340d4fe659c266dc5516800d3f63e6c (patch) | |
tree | e4821a6709da9200ff976e4844e77fe1f9301fc3 /gnu/usr.bin/bc | |
parent | a2b447a0e2f324a996d7b6a019c985c3f64af618 (diff) |
Add CLEANFILES and modify clean/cleandir targets.
(Modified as suggested by millert@)
Diffstat (limited to 'gnu/usr.bin/bc')
-rw-r--r-- | gnu/usr.bin/bc/Makefile.bsd-wrapper | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gnu/usr.bin/bc/Makefile.bsd-wrapper b/gnu/usr.bin/bc/Makefile.bsd-wrapper index 83d5213cfc4..6e351d854b3 100644 --- a/gnu/usr.bin/bc/Makefile.bsd-wrapper +++ b/gnu/usr.bin/bc/Makefile.bsd-wrapper @@ -1,10 +1,11 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.7 1999/02/03 23:31:15 millert Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.8 2000/02/21 03:12:44 ho Exp $ SUBDIR=bcwrap MAN= doc/bc.1 doc/dc.1 LDFLAGS+= -s ${LDSTATIC} GNUCFLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" LDFLAGS="${LDFLAGS}" +CLEANFILES+= bc/libmath.h doc/dc.info all: config.status ${MAKE} ${GNUCFLAGS} @@ -45,10 +46,15 @@ install: maninstall bindir=${DESTDIR}/usr/bin infodir=${PREFIX}/usr/share/info install cd ${.CURDIR}/bcwrap && ${MAKE} install -clean cleandir: +clean: -@if [ -e Makefile ]; then ${MAKE} distclean; fi cd ${.CURDIR}/bcwrap && ${MAKE} clean +cleandir: + -@if [ -e Makefile ]; then ${MAKE} distclean; fi + cd ${.CURDIR}/bcwrap && ${MAKE} cleandir + rm -f ${CLEANFILES} + depend: # Nothing here so far... |