Let tips be installed

This commit is contained in:
Sanel Zukan 2009-02-24 13:54:14 +00:00
parent 6b6b9bc53e
commit ab83d5a051
3 changed files with 19 additions and 3 deletions

View File

@ -38,17 +38,24 @@ EDE_VERSION ?= "@EDE_VERSION@" ;
# directories used by build system # directories used by build system
PREFIX ?= "$(prefix)" ; PREFIX ?= "$(prefix)" ;
EDE_BIN_DIR ?= "$(bindir)" ; EDE_BIN_DIR ?= "$(bindir)" ;
EDE_CONFIG_DIR ?= "$(datadir)/config" ; EDE_CONFIG_DIR ?= "/etc/xdg/ede" ; # use XDG default for config dir
EDE_CONFIG_DIR_OLD ?= "$(datadir)/config" ;
EDE_ICON_DIR ?= "$(datadir)/icons" ; EDE_ICON_DIR ?= "$(datadir)/icons" ;
EDE_DESKTOP_FILE_DIR ?= "$(datadir)/desktop" ; EDE_DESKTOP_FILE_DIR ?= "$(datadir)/desktop" ;
EDE_MIME_DIR ?= "$(datadir)/mime" ; EDE_MIME_DIR ?= "$(datadir)/mime" ;
EDE_DOC_DIR ?= "$(docdir)/ede-$(EDE_VERSION)" ; EDE_DOC_DIR ?= "$(docdir)/ede-$(EDE_VERSION)" ;
EDE_THEMES_DIR ?= "$(datadir)/themes" ;
EDE_TIPS_DIR ?= "$(datadir)/tips" ;
OPTIMFLAGS ?= @EDE_OPTIM_FLAGS@ ; OPTIMFLAGS ?= @EDE_OPTIM_FLAGS@ ;
DEBUGFLAGS ?= @EDE_DEBUG_FLAGS@ ; DEBUGFLAGS ?= @EDE_DEBUG_FLAGS@ ;
# some C libraries have issues with C++ when given '-pedantic' flag, so
# setting 'jam -sPEDANTIC=""' will allow compilation
PEDANTIC = "-pedantic" ;
# global flags used to be passed to every target # global flags used to be passed to every target
GLOBALFLAGS ?= -Wall -pedantic -DHAVE_CONFIG_H -I$(TOP) $(OPTIMFLAGS) $(DEBUGFLAGS) ; GLOBALFLAGS ?= -Wall $(PEDANTIC) -DHAVE_CONFIG_H -I$(TOP) $(OPTIMFLAGS) $(DEBUGFLAGS) ;
STDLIB ?= -lstdc++ ; STDLIB ?= -lstdc++ ;
# Note that REMOVE_UNUSED_DEPENDENCIES_TRICK _does not_ works when # Note that REMOVE_UNUSED_DEPENDENCIES_TRICK _does not_ works when

View File

@ -115,6 +115,12 @@ rule InstallEdeConfigFiles
InstallData $(EDE_CONFIG_DIR) : $(<) ; InstallData $(EDE_CONFIG_DIR) : $(<) ;
} }
# InstallEdeTips [targets] ;
rule InstallEdeTips
{
InstallData $(EDE_TIPS_DIR) : $(<) ;
}
# InstallEdeMimeFiles [targets] ; # InstallEdeMimeFiles [targets] ;
# Installs XDG mime files and run update-mime-database # Installs XDG mime files and run update-mime-database
rule InstallEdeMimeFiles rule InstallEdeMimeFiles

View File

@ -38,3 +38,6 @@ actions FortuneCompile1
} }
FortuneCompile tips/ede.dat : tips/ede ; FortuneCompile tips/ede.dat : tips/ede ;
InstallEdeTips tips/ede.dat ;
InstallEdeTips tips/ede ;