]> git.mxchange.org Git - flightgear.git/blobdiff - Makefile.am
Added support for $FG_SCENERY and --fg-scenery=path
[flightgear.git] / Makefile.am
index 3b84c8cdb63c3958b3de84d0176009f714a6d453..ed08229b722c2274c25b17b5f9dfa169039074b3 100644 (file)
@@ -1,10 +1,13 @@
-SUBDIRS = Include Lib Simulator Tools Tests
+SUBDIRS = \
+       tests \
+       src
 
-EXTRA_DIST = README.Unix README.Linux README.Win32 \
-       README.autoconf README.running Thanks acsite.m4
+EXTRA_DIST = Thanks VERSION acsite.m4 acconfig.h irix-hack.pl
 
 dist-hook:
-       tar cf - Hints | (cd $(distdir); tar xvf -)
+       tar --exclude docs-mini/CVS --exclude hints/CVS -cf - docs-mini hints \
+               | (cd $(distdir); tar xvf -)
+       # tar cf - Simulator/FDM/JSBsim/aircraft Simulator/FDM/JSBsim/engine | (cd $(distdir); tar xvf -)
 
 
 ##########################################################################
@@ -13,83 +16,100 @@ dist-hook:
 # Use "make <target>"
 ##########################################################################
 
-FG_ROOT=$(HOME)/FlightGear
-
-# refresh the fg-root installation
-update-fg-root:
-       tar cf - AUTHORS COPYING NEWS README README.Linux README.Unix \
-               README.Win32 README.anoncvs README.autoconf README.running \
-               Thanks \
-               | (cd $HOME/FlightGear; tar xvf -)
 
 # make the base distribution with textures, sounds and a bit of
 # scenery, and all the other associated files
-fgfs-base: fgfs-base-tar fgfs-base-zip
+
+fgfs-base: fgfs-base-tar fgfs-base-zip fgfs-base-patch
 
 fgfs-base-tar:
        (cd $(HOME); \
-       tar czvf fgfs-base-$(VERSION).tar.gz \
-       FlightGear/[A-R]* \
-       FlightGear/Scenery/w120n030/w111n033 \
+       tar czvf fgfs-base-$(VERSION)b.tar.gz \
+       FlightGear/[A-CE-R]* \
+       FlightGear/Scenery/w120n30/w111n33 \
        FlightGear/Sounds \
-       FlightGear/Textures FlightGear/Thanks \
-       FlightGear/[m-r]* )
+       FlightGear/[T-W]* FlightGear/[c-m]*)
 
 fgfs-base-zip:
        (cd $(HOME); \
-       zip -r fgfs-base-$(VERSION).zip \
-       FlightGear/[A-R]* \
-       FlightGear/Scenery/w120n030/w111n033 \
+       zip -ryv fgfs-base-$(VERSION)b.zip \
+       FlightGear/[A-CE-R]* \
+       FlightGear/Scenery/w120n30/w111n33 \
        FlightGear/Sounds \
        FlightGear/Textures FlightGear/Thanks \
-       FlightGear/[m-r]* )
+       FlightGear/[T-W]* FlightGear/[c-z]*)
+
+fgfs-base-patch:
+       (cd $(HOME); \
+       tar --newer 5/18/2000 -czvf fgfs-base-patch-$(VERSION)b.tar.gz \
+       FlightGear/[A-CE-R]* \
+       FlightGear/Scenery/w120n30/w111n33 \
+       FlightGear/Sounds \
+       FlightGear/[T-W]* FlightGear/[c-m]*)
+
+# make the mini JSBsim data distribution
+jsbsim-data:
+       (cd $(HOME); \
+       tar czvf jsbsim-data-$(VERSION).tar.gz \
+       FlightGear/Aircraft \
+       FlightGear/Engine)
 
 # make the documentation distribution
-fgfs-docs: fgfs-docs-tar fgfs-docs-zip
+
+fgfs-docs: fgfs-docs-tar fgfs-manual-zip
 
 fgfs-docs-tar:
-       tar czvf fgfs-docs-$(VERSION).tar.gz Docs
+       ( cd ../.. ; \
+       tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear-0.7/docs )
 
-# make the documentation distribution
-fgfs-docs-zip:
-       zip -r fgfs-docs-$(VERSION).zip Docs
+# fgfs-docs-zip:
+#      ( cd ../.. ; \
+#      zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
+
+fgfs-manual-zip:
+       ( cd ../.. ; \
+       zip -r fgfs-manual-$(VERSION).zip FlightGear-0.7/docs/InstallGuide )
 
 # make the win32-bin distribution
+
 fgfs-win32-bin:
        (cd $(HOME); \
        zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/bin )
 
-# make the win32-libs distribution
+# make the win32-libs distribution (depricated)
 win32-libs:
-       ( zip -r win32-libs-$(VERSION).zip Win32/Makefile \
-       Win32/README.glut Win32/cygwinb19.dll Win32/def \
+       ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
+       Win32/README.glut Win32/cygwinb1.dll Win32/def \
        Win32/*.exp Win32/gen-def-from-errors.pl \
        Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
        Win32/impdef.exe Win32/include \
        Win32/install.exe \
        Win32/lib Win32/zlib.lib )
 
+# make the MacOS (MWCWP3) devel support archive
+macos-devel:
+       ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
+
 # clean up dependencies
 clean-deps:
        rm -rf .deps \
-       Lib/.deps Simulator/.deps Tools/.deps Test/.deps \
-       Lib/*/.deps Simulator/*/.deps Tools/*/.deps \
-       Lib/*/*/.deps Simulator/*/*/.deps Tools/*/*/.deps \
-       Tests/.deps
+       src/.deps tests/.deps \
+       src/*/.deps \
+       src/*/*/.deps \
+       tests/.deps
 
 # clean up after libtool
 clean-libs:
-       rm -rf .libs Lib/.libs Simulator/.libs Tools/.libs \
-               Lib/*/.libs Simulator/*/.libs Tools/*/.libs \
-               Lib/*/*/.libs Simulator/*/*/.libs Tools/*/*/.libs
-       rm -f Simulator/*/so_locations Lib/*/so_locations \
-               Simulator/*/*/so_locations Lib/*/*/so_locations
+       rm -rf .libs src/.libs \
+               src/*/.libs \
+               src/*/*/.libs 
+       rm -f src/*/so_locations \
+               src/*/*/so_locations 
 
 # clean up after winbloze spews random case for file names :-(
 clean-winbloze: clean-deps clean-libs
-       rm -f makefile Include/makefile Lib/makefile Simulator/makefile \
-               Tools/makefile \
-               Lib/*/makefile Simulator/*/makefile Tools/*/makefile \
-               Lib/*/*/makefile Simulator/*/*/makefile Tools/*/*/makefile \
-               Tests/makefile
-       rm -f Src/Main/fg.exe Tools/*/*.exe
+       rm -f makefile src/Include/makefile src/makefile \
+               src/*/makefile \
+               src/*/*/makefile \
+               tests/makefile
+       rm -f src/Main/fg.exe