section, category and icon fixes
[awish.git] / Jamrules.install
blob5ae65d965476a53e64b09a6ea62357d50344cca6
1 # $(1): gristed source file
2 # $(2): source file
3 # $(3): directory to install
4 # $(LOCATE): the same as $(2) -- can be used in actions
5 rule InstallUserDefined {
6   switch $(2) {
7     case */libs/lib*.bob :
8       #Echo "bob library: $(2)" ;
9       InstallUninistall $(2:S=.bbo) : $(3) ;
10       if $(BUILDSO) {
11         InstallBobLibraryBSO $(1) : $(2) ;
12       } else {
13         InstallBobLibrary $(1) : $(2) ;
14       }
15       REALFILE on $(1) = $(2:S=.bbo) ;
16       #
17       InstallUserChown $(1) : $(2:S=.bbo) ;
18       InstallUserChgrp $(1) : $(2:S=.bbo) ;
19       #
20       if $(INSTALLLIBSSRC) {
21         InstallUninistall $(2) : $(3) ;
22         InstallBobLibrarySrc $(1) : $(2) ;
23         InstallUserChown $(1) : $(2) ;
24         InstallUserChgrp $(1) : $(2) ;
25       }
26       ##
27       #InstallUserChmod $(1) : $(2:S=.bbo) : +x ;
28       #
29       return 1 ;
30   }
31   return "" ;
35 actions quietly InstallBobLibrarySrc {
36   echo installing bob library src: $(>) "->" $(LOCATE)
37   $(CP) $(>) $(LOCATE)
41 actions quietly InstallBobLibrary {
42   $(TOP)/bob -c $(>)
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 ; }
64 if $(INSTALL_VMSRC) {
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 ] ;