# This is the makefile for making all projects!
# (c) 1998, Klaus Gebhardt


include makeversions


all: config dc g77 gdbm less numerik octave octave-beta \
     sed utils uu wall wget xppaut

build: clean all



# Now we define how to make the projects.

config:
	cd config & make install
.PHONY: config

dc:
	cd dc & make
.PHONY: dc

dlfcn:
	cd dlfcn & make install
.PHONY: dlfcn

f2c:
	cd f2c & make install
.PHONY: f2c

g77:
	cd g77 & make
.PHONY: g77

gdbm:
	cd gdbm & make
.PHONY: gdbm

info:
	cd texinfo-$(TEXIVER) & make -f makefile.os2 install
.PHONY: info

kpathsea:
	cd kpathsea & make install
.PHONY: kpathsea

less:
	cd less & make -f makefile.os2 install
.PHONY: less

mkfifo:
	cd mkfifo & make install
.PHONY: mkfifo

numerik:
	cd numerik & make install
.PHONY: numerik

octave: dlfcn f2c info kpathsea mkfifo readline stdcpp
	cd octave-$(OCTVER) & make -f makefile.os2
.PHONY: octave
 
octave-beta: dlfcn f2c info kpathsea mkfifo readline stdcpp
	cd octave-$(OCTBETAVER) & make -f makefile.os2
.PHONY: octave-beta

readline:
	cd readline & make install
.PHONY: readline

sed:
	cd sed & make install
.PHONY: sed

stdcpp:
	cd stdcpp\\emx-0.9c & make install
.PHONY: stdcpp

utils:
	cd utils & make install
.PHONY: utils

uu:
	cd uu & make install
.PHONY: uu

wall:
	cd wall & make
.PHONY: wall

wget:
	cd wget-$(WGETVER) & make -f makefile.os2
.PHONY:wget

xppaut:
	cd xppaut-3.03 & make install
.PHONY: xppaut



# This is for cleaning all projects ...
# Use it for a complete new build ...

clean:
	cd config & make clean
	cd dc & make clean
	cd dlfcn & make clean
	cd f2c & make clean
	cd g77 & make clean
	cd gdbm & make clean
	cd texinfo-$(TEXIVER) & make -f makefile.os2 clean
	cd kpathsea & make clean
	cd less & make -f makefile.os2 clean
	cd mkfifo & make clean
	cd numerik & make clean
	cd octave-2.0.13 & make -f makefile.os2 clean
	cd octave-2.1.18 & make -f makefile.os2 clean
	cd readline & make clean
	cd sed & make clean
	cd stdcpp\\emx-0.9c & make clean
	cd stdcpp\\emx-0.9d & make clean
	cd utils & make clean
	cd uu & make clean
	cd wall & make clean
	cd wget & make -f makefile.os2 clean
	cd xppaut-3.03 & make clean
.PHONY: clean
