Release script: Remove .d/.depend files from CD
This commit is contained in:
parent
6bbcab3ec4
commit
2fd1f18803
4 changed files with 29 additions and 20 deletions
31
Makefile
31
Makefile
|
@ -57,11 +57,11 @@ commands:
|
|||
cd commands && $(MAKE) all
|
||||
|
||||
depend::
|
||||
cd boot && $(MAKE) $@
|
||||
cd commands && $(MAKE) $@
|
||||
cd kernel && $(MAKE) $@
|
||||
cd servers && $(MAKE) $@
|
||||
cd drivers && $(MAKE) $@
|
||||
cd boot && $(MAKE) depend
|
||||
cd commands && $(MAKE) depend
|
||||
cd kernel && $(MAKE) depend
|
||||
cd servers && $(MAKE) depend
|
||||
cd drivers && $(MAKE) depend
|
||||
|
||||
etcfiles::
|
||||
cd etc && $(MAKE) install
|
||||
|
@ -70,24 +70,23 @@ all::
|
|||
cd boot && $(MAKE) all
|
||||
cd commands && $(MAKE) all
|
||||
cd tools && $(MAKE) all
|
||||
cd servers && $(MAKE) all
|
||||
cd drivers && $(MAKE) all
|
||||
|
||||
install::
|
||||
cd boot && $(MAKE) all install
|
||||
cd man && $(MAKE) all install makedb
|
||||
cd commands && $(MAKE) all install
|
||||
cd share && $(MAKE) all install
|
||||
cd tools && $(MAKE) all install
|
||||
cd servers && $(MAKE) all install
|
||||
cd drivers && $(MAKE) all install
|
||||
cd boot && $(MAKE) install
|
||||
cd man && $(MAKE) install makedb
|
||||
cd commands && $(MAKE) install
|
||||
cd share && $(MAKE) install
|
||||
cd tools && $(MAKE) install
|
||||
|
||||
clean::
|
||||
cd boot && $(MAKE) clean
|
||||
cd commands && $(MAKE) clean
|
||||
cd tools && $(MAKE) clean
|
||||
cd servers && $(MAKE) clean
|
||||
cd lib && sh ack_build.sh clean
|
||||
cd lib && sh gnu_build.sh clean
|
||||
cd commands && $(MAKE) clean
|
||||
cd test && $(MAKE) clean
|
||||
|
||||
cleandepend::
|
||||
cd boot && $(MAKE) cleandepend
|
||||
cd commands && $(MAKE) cleandepend
|
||||
cd tools && $(MAKE) cleandepend
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
|
||||
.include <minix.init.mk>
|
||||
|
||||
# MINIX: cleandepend works for SUBDIRs
|
||||
TARGETS+= cleandepend
|
||||
.PHONY: cleandepend
|
||||
.NOTMAIN: cleandepend
|
||||
|
||||
.if !defined(NOSUBDIR) # {
|
||||
|
||||
.for dir in ${SUBDIR}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# Makefile for the kernel image.
|
||||
|
||||
u=/usr
|
||||
CC= exec cc
|
||||
CFLAGS= -O -D_MINIX -D_POSIX_SOURCE
|
||||
MDEC= /usr/mdec
|
||||
|
||||
|
@ -45,7 +44,7 @@ usage:
|
|||
all: services image
|
||||
|
||||
image: includes
|
||||
cd ../kernel && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS)
|
||||
cd ../kernel && $(MAKE)
|
||||
cd ../servers && $(MAKE) all
|
||||
cd ../drivers && $(MAKE) all
|
||||
installboot -image $@ $(PROGRAMS)
|
||||
|
@ -59,8 +58,8 @@ depend: includes
|
|||
|
||||
services: includes
|
||||
cd ../kernel && $(MAKE)
|
||||
cd ../servers && $(MAKE) all install
|
||||
cd ../drivers && $(MAKE) all install
|
||||
cd ../servers && $(MAKE) install
|
||||
cd ../drivers && $(MAKE) install
|
||||
|
||||
libraries: includes
|
||||
cd ../lib && sh ack_build.sh clean obj depend all install
|
||||
|
@ -86,3 +85,7 @@ clean:
|
|||
cd ../drivers && $(MAKE) $@
|
||||
rm -rf *.bak image *.iso *.iso.gz cdfdimage rootimage src
|
||||
|
||||
cleandepend::
|
||||
cd ../kernel && $(MAKE) $@
|
||||
cd ../servers && $(MAKE) $@
|
||||
cd ../drivers && $(MAKE) $@
|
||||
|
|
|
@ -15,6 +15,8 @@ if [ $MAKEMAP -ne 0 ]; then
|
|||
find . -type f -perm 755 | xargs nm -n 2> /dev/null > symbols.txt
|
||||
fi
|
||||
make clean
|
||||
make cleandepend
|
||||
find . -name obj-ack -type d|xargs rm -rf
|
||||
# Let man find the manpages
|
||||
makewhatis /usr/man
|
||||
makewhatis /usr/local/man
|
||||
|
|
Loading…
Reference in a new issue