all: omnotebook

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
CMAKE=CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" cmake
CMAKE_TARGET = "Unix Makefiles"

ifeq (@APP@,)
install:
	mkdir -p ${DESTDIR}/@bindir@
	cp -a @OMBUILDDIR@/bin/OMNotebook@EXE@ ${DESTDIR}/@bindir@
else
install:
	mkdir -p ${DESTDIR}/Applications/
	cp -a @OMBUILDDIR@/Applications/OMNotebook@APP@ ${DESTDIR}/Applications/
endif
	mkdir -p ${DESTDIR}/lib/@host_short@/omc/ ${DESTDIR}/share/omnotebook/nls/
	cp -a @OMBUILDDIR@/lib/@host_short@/omc/* ${DESTDIR}/lib/@host_short@/omc/
	cp -a @OMBUILDDIR@/share/omnotebook/nls/* ${DESTDIR}/share/omnotebook/nls/

mkbuilddirs:
	mkdir -p @OMBUILDDIR@/bin @OMBUILDDIR@/share/omnotebook/nls @OMBUILDDIR@/lib/@host_short@/omc
omnotebook: mkbuilddirs
	$(MAKE) -C OMNotebook/OMNotebookGUI -f Makefile.unix
clean:
	$(MAKE) -C OMNotebook/OMNotebookGUI -f Makefile.unix clean
distclean: clean
	rm -f config.status configure Makefile OMNotebook/OMNotebook/Makefile.unix OMNotebook/OMNotebookGUI/OMNotebook.config
Makefile: Makefile.in config.status
	./config.status
config.status: configure
	./config.status -recheck
configure: configure.ac common/m4/corba.m4 common/m4/omhome.m4 common/m4/qmake.m4
	autoconf
