# $Id$ # This is the src level Makefile for Gramps SUBDIRS = \ Config \ DataViews \ Editors \ GrampsDb \ GrampsLogger \ Mime \ Models \ ObjectSelector \ RelLib \ TreeViews \ data \ DateHandler \ PluginUtils \ glade \ docgen \ images \ plugins \ po # For intl. support, how do we compile? MOSTLYCLEANFILES = CLEANFILES = const.pyc const.pyo # What are the PYTHON scripts for this package that need to be handled? # # We only want optimized byte-compiled (.pyo) versions, no .pyc # In principle, this is handled by PYCFILES and PYOFILES, but # they don't seem to work so we edited the py-compile script instead gdirdir=$(prefix)/share/gramps docfiles = \ RelLib.py \ Date.py \ DateParser.py \ DateDisplay.py \ GrampsDbBase.py gdir_PYTHON = \ AddMedia.py\ ansel_utf8.py\ ArgHandler.py\ Assistant.py\ AutoComp.py\ BaseDoc.py\ Bookmarks.py\ ColumnOrder.py\ const.py\ DateEdit.py\ Date.py\ DdTargets.py\ DisplayModels.py\ DisplayState.py\ DisplayTabs.py\ Errors.py\ Exporter.py\ FontScale.py\ GenericFilter.py\ GrampsCfg.py\ GrampsDisplay.py\ GrampsLocale.py\ gramps_main.py\ gramps.py\ GrampsWidgets.py\ ImgManip.py\ ListModel.py\ MergeData.py\ MergePeople.py\ NameDisplay.py\ Navigation.py\ PageView.py\ PaperMenu.py\ PeopleModel.py\ PluginMgr.py\ Plugins.py\ QuestionDialog.py\ RecentFiles.py\ Relationship.py\ RelImage.py\ ScratchPad.py\ SelectEvent.py\ SelectObject.py\ SelectPerson.py\ Sort.py\ soundex.py\ Spell.py\ SpreadSheetDoc.py\ StartupDialog.py\ StyleEditor.py\ SubstKeywords.py\ TipOfDay.py\ ToolTips.py\ TransUtils.py\ TreeTips.py\ Utils.py\ ViewManager.py\ WindowUtils.py # Could use GNU make's ':=' syntax for nice wildcard use. # If not using GNU make, then list all files individually # The latter is more portable and POSIX-friendly :) # In principle the following rule slightly violates the automake/autoconf # spirit of keeping each subdirectory as a separate entity unto itself. # But, since the template depends on everything from here, we allow this # one exception. # Build po/template.po. .PHONY: trans trans: ./build_po pycheck: for d in $(SUBDIRS) ; do \ (cd $$d; make pycheck); \ done; pychecker $(gdir_PYTHON) docs: epydoc -o doc --url http://gramps.sourceforge.net --name GRAMPS --html $(docfiles) epydoc --pdf $(docfiles) cmdplug: ./build_cmdplug