From d292ba7d219d6336b4c4a7354e151a5eb6e39be5 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 27 Jan 2006 14:38:23 +0000 Subject: [PATCH] build scripts accept 'build' argument to not install --- commands/Makefile | 25 +++---------------------- commands/bzip2-1.0.3/build | 4 +++- commands/flex-2.5.4/build | 5 +++-- 3 files changed, 9 insertions(+), 25 deletions(-) diff --git a/commands/Makefile b/commands/Makefile index c9bc07c8f..651065f1e 100755 --- a/commands/Makefile +++ b/commands/Makefile @@ -14,7 +14,7 @@ COREUTILS=gnu-coreutils-5.2.1 VIM=vim63 PERL=perl-5.8.7 -SMALLPROGRAMS=`arch` aal advent ash autil awk bc byacc cawf cron de dhcpd dis88 elle elvis ftp ftpd ftpd200 httpd ibm indent m4 make mdb mined patch ps reboot rlogind scripts sh simple talk talkd telnet telnetd urlget yap zmodem pax +SMALLPROGRAMS=`arch` aal advent ash autil awk bc byacc cawf cron de dhcpd dis88 elle elvis ftp ftpd ftpd200 httpd ibm indent m4 make mdb mined patch pax ps reboot rlogind scripts sh simple talk talkd telnet telnetd urlget yap zmodem usage: @echo "Usage: make all # Compile all commands" >&2 @@ -43,37 +43,18 @@ smallinstall:: small cd $(NVI) && make install big: - cd $(FLEX) && /bin/sh makeme.sh - cd $(BZIP2) && /bin/sh makeme.sh - #cd $(LYNX) && /bin/sh makeme.sh - #cd $(COREUTILS) && /bin/sh makeme.sh - #cd $(PERL) && /bin/sh makeme.sh - #cd $(EMACS) && /bin/sh makeme.sh - #cd $(PYTHON) && /bin/sh makeme.sh - #cd $(VIM) && /bin/sh makeme.sh - #cd $(KERMIT) && /bin/sh makeme.sh + cd $(FLEX) && /bin/sh build build + cd $(BZIP2) && /bin/sh build build biginstall: big cd $(FLEX) && make install - #cd $(PYTHON) && make install cd $(BZIP2) && make install - #cd $(KERMIT) && make install - #cd $(LYNX) && make install - #cd $(EMACS) && make install - #cd $(COREUTILS) && make install - #cd $(PERL) && make install - #cd $(VIM) && make install clean:: if [ -f $(FLEX)/Makefile ] ; then cd $(FLEX) && make $@; fi if [ -f $(GZIP)/Makefile ] ; then cd $(GZIP) && make $@; fi - #if [ -f $(PYTHON)/Makefile ] ; then cd $(PYTHON) && make $@; fi cd $(BZIP2) && make clean - #cd $(KERMIT) && make clean if [ -f $(NVIWORK)/Makefile ]; then cd $(NVIWORK) && make clean; fi - #if [ -f $(LYNX)/Makefile ] ; then cd $(LYNX) && make clean; fi - #if [ -f $(EMACS)/Makefile ] ; then cd $(EMACS) && make clean; fi - #cd $(COREUTILS) && make clean for p in $(SMALLPROGRAMS); do ( cd $$p && make clean ); done small:: diff --git a/commands/bzip2-1.0.3/build b/commands/bzip2-1.0.3/build index dc05bcc3d..46724b9af 100755 --- a/commands/bzip2-1.0.3/build +++ b/commands/bzip2-1.0.3/build @@ -1,4 +1,6 @@ #!/bin/sh make clean bigmake all -make install +if [ $1 != build ] +then make install +fi diff --git a/commands/flex-2.5.4/build b/commands/flex-2.5.4/build index 612e9ad3e..9f6a6aa2a 100755 --- a/commands/flex-2.5.4/build +++ b/commands/flex-2.5.4/build @@ -1,4 +1,5 @@ #!/bin/sh -make clean CC=cc /bin/sh ./configure --prefix=/usr/local && bigmake all -make install +if [ $1 != build ] +then make install +fi