mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Synced same behaviour between haiku jam and vanilla jam
This commit is contained in:
parent
1a7f6d9f06
commit
15b342009e
@ -39,15 +39,15 @@ rule EdeManual
|
||||
# and grist to prevent collision
|
||||
target = $(target:S=$(html_ext):G="$(target)-html") ;
|
||||
|
||||
Depends $(target) : $(source) ;
|
||||
Depends all : $(target) ;
|
||||
Depends doc : $(target) ;
|
||||
LocalDepends $(target) : $(source) ;
|
||||
LocalDepends all : $(target) ;
|
||||
LocalDepends doc : $(target) ;
|
||||
|
||||
# set output to $(MANUALDIR) directory
|
||||
MakeLocate $(target) : $(MANUALDIR) ;
|
||||
|
||||
AsciiDoc1 $(target) : $(source) ;
|
||||
Clean clean : $(target) ;
|
||||
LocalClean clean : $(target) ;
|
||||
}
|
||||
|
||||
# copy images, if given
|
||||
@ -59,13 +59,13 @@ rule EdeManual
|
||||
|
||||
MkDir $(imgdir) ;
|
||||
|
||||
Depends $(target) : $(imgdir) ;
|
||||
Depends $(target) : $(source) ;
|
||||
Depends all : $(target) ;
|
||||
Depends doc : $(target) ;
|
||||
LocalDepends $(target) : $(imgdir) ;
|
||||
LocalDepends $(target) : $(source) ;
|
||||
LocalDepends all : $(target) ;
|
||||
LocalDepends doc : $(target) ;
|
||||
|
||||
Copy $(target) : $(source) ;
|
||||
Clean clean : $(target) ;
|
||||
LocalClean clean : $(target) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31,11 +31,11 @@ rule MakeInstallPrivate
|
||||
|
||||
for i in $(s) {
|
||||
t = $(i:BSR=$(dir):G=installed) ;
|
||||
Depends $(t) : $(i) ;
|
||||
Depends $(t) : $(dir) ;
|
||||
LocalDepends $(t) : $(i) ;
|
||||
LocalDepends $(t) : $(dir) ;
|
||||
|
||||
Depends install : $(t) ;
|
||||
Clean uninstall : $(t) ;
|
||||
LocalDepends install : $(t) ;
|
||||
LocalClean uninstall : $(t) ;
|
||||
|
||||
Install1 $(t) : $(i) ;
|
||||
|
||||
|
@ -37,7 +37,7 @@ rule SharedLibraryFromObjects
|
||||
t = $(t:S=$(SUFSHAREDLIB)) ;
|
||||
}
|
||||
|
||||
Depends lib : $(t) ;
|
||||
LocalDepends lib : $(t) ;
|
||||
|
||||
# This is used if library already does not have a path
|
||||
if ! $(t:D) {
|
||||
@ -47,10 +47,10 @@ rule SharedLibraryFromObjects
|
||||
LINKLIBS on $(t) = -shared -Wl,-soname,\"$(t_only)\" [ on $(t) return $(LINKLIBS) ] ;
|
||||
|
||||
# Let target is dependant on source
|
||||
Depends $(t) : $(s) ;
|
||||
LocalDepends $(t) : $(s) ;
|
||||
|
||||
Link $(t) : $(s) ;
|
||||
Clean clean : $(t) ;
|
||||
LocalClean clean : $(t) ;
|
||||
}
|
||||
|
||||
# SharedLibrary [libname] : [sources] ;
|
||||
@ -99,10 +99,10 @@ rule SharedLibraryVersioned
|
||||
# from place where jam is called
|
||||
LOCATE on $(symlink) = [ on $(target) return $(LOCATE) ] ;
|
||||
|
||||
Depends lib : $(symlink) ;
|
||||
LocalDepends lib : $(symlink) ;
|
||||
|
||||
SymLink $(symlink) : $(target) ;
|
||||
Clean clean : $(symlink) ;
|
||||
LocalClean clean : $(symlink) ;
|
||||
}
|
||||
} else {
|
||||
SharedLibrary $(1) : $(2) ;
|
||||
|
@ -22,7 +22,7 @@ rule MakeProgramPrivate
|
||||
|
||||
# so 'jam foo' works when 'foo' is final executable
|
||||
if $(target) != $(<) {
|
||||
Depends $(<) : $(target) ;
|
||||
LocalDepends $(<) : $(target) ;
|
||||
NotFile $(<) ;
|
||||
}
|
||||
|
||||
|
@ -44,17 +44,17 @@ rule TranslationStrings
|
||||
|
||||
MkDir $(locale_dir) ;
|
||||
for i in $(source) {
|
||||
Depends $(target) : $(i) ;
|
||||
LocalDepends $(target) : $(i) ;
|
||||
}
|
||||
|
||||
Depends $(target) : $(locale_dir) ;
|
||||
Depends potfile : $(target) ;
|
||||
Depends translation : $(target) ;
|
||||
Depends all : $(target) ;
|
||||
LocalDepends $(target) : $(locale_dir) ;
|
||||
LocalDepends potfile : $(target) ;
|
||||
LocalDepends translation : $(target) ;
|
||||
LocalDepends all : $(target) ;
|
||||
|
||||
XGettext $(target) : $(source) ;
|
||||
|
||||
Clean clean : $(target) ;
|
||||
LocalClean clean : $(target) ;
|
||||
CleandirSafe distclean : $(locale_dir) ;
|
||||
}
|
||||
|
||||
@ -85,13 +85,13 @@ rule Translation
|
||||
pofile = [ FFileName $(path) $(<) $(i) ] ;
|
||||
mofile = [ FFileName $(path) $(<) $(i:S=$(moext)) ] ;
|
||||
|
||||
Depends $(mofile) : $(pofile) ;
|
||||
Depends all : $(mofile) ;
|
||||
Depends translation : $(mofile) ;
|
||||
LocalDepends $(mofile) : $(pofile) ;
|
||||
LocalDepends all : $(mofile) ;
|
||||
LocalDepends translation : $(mofile) ;
|
||||
|
||||
MakeTranslation1 $(mofile) : $(pofile) ;
|
||||
|
||||
Clean clean : $(mofile) ;
|
||||
LocalClean clean : $(mofile) ;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -16,6 +16,14 @@
|
||||
#MKDIRS ?= "mkdir -p" ;
|
||||
#LINKCMD ?= "ln -s" ;
|
||||
|
||||
# Compatibility with ftjam,PerforceJam,...
|
||||
# Haiku jam have builtin LocalClean and LocalDepends
|
||||
if ! $(INVOCATION_SUBDIR_SET) {
|
||||
rule LocalClean { Clean $(1) : $(2) ; }
|
||||
rule LocalDepends { Depends $(1) : $(2) ; }
|
||||
}
|
||||
# Compatibility part ends
|
||||
|
||||
# Fltk use .cxx extension for C++ files so it must
|
||||
# be registered. This rule is called by jam so final
|
||||
# application must not use it.
|
||||
@ -82,7 +90,7 @@ rule SymLink
|
||||
return ;
|
||||
}
|
||||
|
||||
Depends $(<) : $(>) ;
|
||||
LocalDepends $(<) : $(>) ;
|
||||
|
||||
if $(3) {
|
||||
SYMLINKSRCPATH on $(<) = $(3) ;
|
||||
|
Loading…
Reference in New Issue
Block a user