X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=Makefile.am;h=fbc590618f518f070bcf94590c41559bc7b322e9;hb=c362ca795c465ad238743d32d9f1661d2daf134c;hp=9e4a4f8b8d07f8a9e438de74172b49bdebf7e8bf;hpb=617ec6be214dca0582654464b8fe1abda8e5a8b4;p=flightgear.git diff --git a/Makefile.am b/Makefile.am index 9e4a4f8b8..fbc590618 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,18 +1,174 @@ -if HAVE_DAYLIGHT -DEFS += -DHAVE_DAYLIGHT -endif +SUBDIRS = \ + tests \ + man \ + scripts \ + src \ + utils -if HAVE_TIMEZONE -DEFS += -DHAVE_TIMEZONE -endif +EXTRA_DIST = \ + Thanks \ + acinclude.m4 \ + autogen.sh \ + FlightGear.dsp \ + FlightGear.dsw -bin_PROGRAMS = est-epsilon gl-info test-mktime +dist-hook: + (cd $(top_srcdir); $(HOME)/Projects/FlightGear-0.9/admin/am2dsp.pl) + (cd $(top_srcdir); tar --exclude docs-mini/CVS --exclude hints/CVS \ + -cf - docs-mini ) | (cd $(distdir); tar xvf -) -est_epsilon_SOURCES = est-epsilon.c -est_epsilon_LDADD = $(base_LIBS) -gl_info_SOURCES = gl-info.c -gl_info_LDADD = $(opengl_LIBS) $(base_LIBS) +########################################################################## +# extra targets to do various things ... +# +# Use "make " +########################################################################## -test_mktime_SOURCES = test-mktime.cxx -test_mktime_LDADD = $(base_LIBS) \ No newline at end of file + +# make the base distribution with textures, sounds and a bit of +# scenery, and all the other associated files + +fgfs-base-tar: + (cd ..; \ + tar \ + --exclude=CVS \ + --exclude='*~' \ + --exclude='*.tex' \ + --exclude='*.xcf' \ + --exclude='*/c172/Instruments.high' \ + --exclude='*/Textures/Unused' \ + --exclude='*/Textures.high/*.save' \ + --exclude='*/Textures.high/*.new' \ + --exclude='*/Docs/source' \ + -cvf - \ + data/ATC \ + data/AUTHORS \ + data/Aircraft/737 \ + data/Aircraft/747 \ + data/Aircraft/A-10 \ + data/Aircraft/A320 \ + data/Aircraft/AN-225 \ + data/Aircraft/B-52F \ + data/Aircraft/BAC-TSR2 \ + data/Aircraft/ComperSwift \ + data/Aircraft/Generic \ + data/Aircraft/Hunter \ + data/Aircraft/Instruments \ + data/Aircraft/Instruments-3d \ + data/Aircraft/OV10 \ + data/Aircraft/Spitfire \ + data/Aircraft/T38 \ + data/Aircraft/UIUC \ + data/Aircraft/X15 \ + data/Aircraft/YF-23 \ + data/Aircraft/a4 \ + data/Aircraft/beech99 \ + data/Aircraft/bo105 \ + data/Aircraft/c172 \ + data/Aircraft/c172-fs-set.xml \ + data/Aircraft/c172-le \ + data/Aircraft/c172p \ + data/Aircraft/c172r \ + data/Aircraft/c172x \ + data/Aircraft/c182 \ + data/Aircraft/c310 \ + data/Aircraft/c310u3a \ + data/Aircraft/dc3 \ + data/Aircraft/f16 \ + data/Aircraft/j22 \ + data/Aircraft/j3cub \ + data/Aircraft/ornithopter \ + data/Aircraft/p51d \ + data/Aircraft/pa28-161 \ + data/Aircraft/seahawk \ + data/Aircraft/sgs233 \ + data/Aircraft/t6texan2 \ + data/Aircraft/tu154 \ + data/Aircraft/ufo \ + data/Aircraft/wrightFlyer1903 \ + data/Airports \ + data/Astro \ + data/[C-H]* \ + data/Input \ + data/[J-R]* \ + data/Scenery \ + data/Sounds \ + data/[T-W]* \ + data/gui \ + data/[j-p]* \ + data/version \ + | bzip2 --best > fgfs-base-$(VERSION).tar.bz2 \ + ) + +fgfs-textures-high: + (cd $(HOME); \ + tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \ + FlightGear/Textures.high) + +# 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-manual-zip + +fgfs-docs-tar: + ( cd $(HOME); \ + tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs ) + +# fgfs-docs-zip: +# ( cd $(HOME)/Projects ; \ +# zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs ) + +fgfs-manual-zip: + ( cd $(HOME) ; \ + zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide ) + +# make the win32-bin distribution + +fgfs-win32-bin: + (cd $(HOME); \ + zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/runfgfs.bat \ + FlightGear/bin/Win32 ) + +# make the win32-libs distribution (depricated) +win32-libs: + ( 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 \ + src/.deps tests/.deps \ + src/*/.deps \ + src/*/*/.deps \ + tests/.deps + +# clean up after libtool +clean-libs: + 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 src/Include/makefile src/makefile \ + src/*/makefile \ + src/*/*/makefile \ + tests/makefile + rm -f src/Main/fg.exe