1 # $(1): gristed source file
3 # $(3): directory to install
4 # $(LOCATE): the same as $(2) -- can be used in actions
5 rule InstallUserDefined {
8 #Echo "bob library: $(2)" ;
9 InstallUninistall $(2:S=.bbo) : $(3) ;
11 InstallBobLibraryBSO $(1) : $(2) ;
13 InstallBobLibrary $(1) : $(2) ;
15 REALFILE on $(1) = $(2:S=.bbo) ;
17 InstallUserChown $(1) : $(2:S=.bbo) ;
18 InstallUserChgrp $(1) : $(2:S=.bbo) ;
20 if $(INSTALLLIBSSRC) {
21 InstallUninistall $(2) : $(3) ;
22 InstallBobLibrarySrc $(1) : $(2) ;
23 InstallUserChown $(1) : $(2) ;
24 InstallUserChgrp $(1) : $(2) ;
27 #InstallUserChmod $(1) : $(2:S=.bbo) : +x ;
35 actions quietly InstallBobLibrarySrc {
36 echo installing bob library src: $(>) "->" $(LOCATE)
41 actions quietly InstallBobLibrary {
43 echo installing bob library bso: $(REALFILE) "->" $(LOCATE)
44 $(CP) $(REALFILE) $(LOCATE)
48 actions quietly InstallBobLibraryBSO {
49 #echo "compiling '`basename \"$(>)\"`'"
50 LD_LIBRARY_PATH="$(TOP)/libs/" $(TOP)/bob -c $(>)
51 echo installing bob library bso: $(REALFILE) "->" $(LOCATE)
52 $(CP) $(REALFILE) $(LOCATE)
56 InstallBin bin : $(TOP)/awish ;
57 if $(INSTALL_AWASM) { InstallBin bin : $(TOP)/awasm ; }
58 InstallFile share/awish/data/sprites : $(TOP)/data/sprites/cursors.spr ;
59 InstallFile share/awish/data/code : $(TOP)/data/code/awish.vmd ;
61 if [ FileExists $(TOP)/data/RESOURCE.DAT ] { InstallFile share/awish/data : $(TOP)/data/RESOURCE.DAT ; }
62 if [ FileExists $(TOP)/data/RESOURCE.SND ] { InstallFile share/awish/data : $(TOP)/data/RESOURCE.SND ; }
65 InstallFile share/awish/asm : [ Glob $(TOP)/asm : "*" : files-only full-path ] ;
66 InstallFile share/awish/asm/defs : [ Glob $(TOP)/asm/defs : "*" : files-only full-path ] ;
67 InstallFile share/awish/asm/game : [ Glob $(TOP)/asm/game : "*" : files-only full-path ] ;
68 InstallFile share/awish/asm/game/use : [ Glob $(TOP)/asm/game/use : "*" : files-only full-path ] ;
69 InstallFile share/awish/asm/goobers : [ Glob $(TOP)/asm/goobers : "*" : files-only full-path ] ;
70 InstallFile share/awish/asm/imports : [ Glob $(TOP)/asm/imports : "*" : files-only full-path ] ;
71 InstallFile share/awish/asm/items : [ Glob $(TOP)/asm/items : "*" : files-only full-path ] ;
72 InstallFile share/awish/asm/loaders : [ Glob $(TOP)/asm/loaders : "*" : files-only full-path ] ;
73 InstallFile share/awish/asm/macs : [ Glob $(TOP)/asm/macs : "*" : files-only full-path ] ;
74 InstallFile share/awish/asm/mapscripts : [ Glob $(TOP)/asm/mapscripts : "*" : files-only full-path ] ;