Updated version number.
[vlp.git] / Makefile.am
index cd2e1eed57414eb4c109b5d53c2901d92bfa5634..235d759b925a1d357ba568b4dbb7a8b0a55465bd 100644 (file)
@@ -8,6 +8,15 @@ MOC = ${MOCDIR}/${MOCNAME}
 AM_CXXFLAGS = -I$(top_srcdir)/src/global
 AM_LDFLAGS= -fPIC
 
+EXTRA_DIST = \
+       doc/examples \
+       doc/install \
+       doc/html-old  \
+       doc/installQT.html \
+       doc/InstallVLP.html \
+       doc/INSTALL_VLP.pdf \
+       doc/CodingStyle \
+       doc/vlp.cfg.sample
 
 bin_PROGRAMS = \
   bin/loggraph \
@@ -42,6 +51,9 @@ clean-loggraph-extra:
 bin_lognet_SOURCES = src/net/lognet.cpp src/net/lognet.moc.cpp
 bin_lognet_CPPFLAGS = $(bin_lognet_CFLAGS)
 bin_lognet_LDADD = $(bin_lognet_LIBS)
+bin_lognetdir = src/net
+bin_lognet_HEADERS = \
+       src/net/soct.h
 src/net/lognet.moc.cpp:
        $(MOC) -i src/net/lognet.cpp -o src/net/lognet.moc.cpp
 
@@ -84,14 +96,29 @@ bin_logint_SOURCES = \
 #       force adding it.
 bin_logint_CPPFLAGS = $(bin_logint_CFLAGS) -DUNIX -DWORD_32BIT -DUSE_CLOCK -Dpascal= -DOBJECTADDR -DSYSV -I$(top_srcdir)/src/global -I/usr/include/qt3
 bin_logint_LDADD = $(bin_logint_LIBS) -lm -lqt-mt
-
-# TODO: not working...
-#clean-logint-extra:
-#      rm -f bin/logint
+bin_logintdir = src/int
+bin_logint_HEADERS = \
+       src/int/genint.h \
+       src/int/int.h \
+       src/int/intproto.h \
+       src/int/nonstand.h \
+       src/int/process.h \
+       src/int/queue.h \
+       src/int/depend.h \
+       src/int/eventque.h \
+       src/global/comm.h \
+       src/global/genint1.h \
+       src/global/socu.h
+
+clean-logint-extra:
+       rm -f bin/logint
 
 bin_logedit_SOURCES = src/edit/editor.cpp src/edit/editor.moc.cpp 
 bin_logedit_CPPFLAGS = $(bin_logedit_CFLAGS) 
 bin_logedit_LDADD = $(bin_logedit_LIBS)
+bin_logeditdir = src/edit
+bin_logedit_HEADERS =\
+       src/edit/editor.h
 
 src/edit/editor.moc.cpp: src/edit/editor.h
        $(MOC) src/edit/editor.h -o src/edit/editor.moc.cpp
@@ -133,26 +160,70 @@ clean-loghelp-extra:
        rm -f bin/modules/loghelp
        rm -f bin/loghelp
 
-all-local:
+all-local: doxyfile.stamp
+       test -d bin/doc || mkdir bin/doc
+       test -d bin/pics || mkdir bin/pics
        test -d bin/modules || mkdir bin/modules
+       test -d bin/config || mkdir bin/config
+       test -d bin/compile || mkdir bin/compile
+       test -d bin/doc/lang || mkdir bin/doc/lang
+       test -d bin/examp || mkdir bin/examp
        ln -fs ../logedit bin/modules/
        ln -fs ../loggraph bin/modules/
        ln -fs ../loghelp bin/modules/
        ln -fs ../lognet bin/modules/
-       
-CLEANFILES = \
-       %.o \
-       %.bak \
-  %~
+       ln -fs ../logint bin/modules/
+       ln -fs ../logcomp bin/compile/
+       ln -fs ../lgconfig bin/config/
+       ln -fs ../../doc/install/inst/loglan bin/compile/
+       ln -fs ../../doc/install/inst/gen bin/compile/
+       cp doc/vlp.cfg.sample bin/vlp.cfg
+       cp -r doc/examples/* bin/examp/
+       cp doc/install/inst/close.bmp bin/pics/
+       cp doc/install/inst/logo.bmp bin/config/
 
 clean-am: \
   clean-loggraph-extra \
   clean-lognet-extra \
   clean-logker-extra \
+  clean-logint-extra \
   clean-logedit-extra \
   clean-lgconfig-extra \
   clean-logcomp-extra \
   clean-loghelp-extra
+       rm -rf bin/doc
+       rm -rf bin/pics
        rm -rf bin/modules
+       rm -rf bin/config
+       rm -rf bin/compile
+       rm -rf bin/examp
+       rm -f bin/vlp.cfg
+
+CLEANFILES = \
+       %.o \
+       %.bak \
+       %~ \
+       doxyfile.stamp
+
+if HAVE_DOXYGEN
+
+directory = $(top_srcdir)/doc/man/man3
+
+#dist_man_MANS = \
+#      $(directory)/Editor.3 \
+#      $(directory)/QKernel.3
+#$(directory)/man_page_1.3: doxyfile.stamp
+#$(directory)/man_page_2.3: doxyfile.stamp
+
+doxyfile.stamp:
+       $(DOXYGEN) Doxyfile
+       echo Timestamp > doxyfile.stamp
+
+#all-local: doxyfile.stamp
+
+clean-local:
+       rm -rf $(top_srcdir)/doc/man
+
+endif
 
 dist_noinst_SCRIPTS = autogen.sh