# the directory where the manual should be installed
MANEXT = 1
MANDIR = ${HOME}/man/man$(MANEXT)

# the directory where the binary should be installed
BINDIR = ${HOME}/bin

# the directory where the strandard library should be installed
LIBDIR = ${HOME}/lib/lucid-synchrone

# the directory where the Lucid Synchrone mode should be installed
EMACSDIR = ${HOME}/gemacs


#############################################
install:
	(cd launch;make BINDIR="$(BINDIR)" LIBDIR="$(LIBDIR)" install);
	(cd lib;make LIBDIR="$(LIBDIR)" install);
	(cd man;make MANDIR="$(MANDIR)" install);
	(cd emacs;make EMACSDIR="$(EMACSDIR)" install)
	(cd simulator;make BINDIR="$(BINDIR)" LIBDIR="$(LIBDIR)" MANDIR="$(MANDIR)" install)

uninstall:
	(cd launch;make BINDIR="$(BINDIR)" uninstall);
	(cd lib;make LIBDIR="$(LIBDIR)" uninstall);
	(cd man;make MANDIR="$(MANDIR)" uninstall);
	(cd emacs;make EMACSDIR="$(EMACSDIR)" uninstall)
