Added code to automatically convert Icon paths in WMWindowAttributes from
[wmaker-crm.git] / WindowMaker / mkMakefile
blobbd81c58bade04fd6086bc8c2a1d3e220923bfcc7
1 #!/bin/sh
4 # Creates a Makefile.am file containing all the stuff to install
5 # wmaker data
11 DIRS="Backgrounds Defaults IconSets Icons Pixmaps Styles Themes"
13 FILE=Makefile.am
15 spit() {
16 echo -n "$*" >> $FILE
19 spitln() {
20 echo "$*" >> $FILE
25 rm -f $FILE
30 spitln SUBDIRS = $DIRS
31 spitln
32 spitln prefsdatadir = '$(pkgdatadir)'
33 spitln
36 EXCEPT="Makefile.am Makefile.in Makefile mkMakefile $FILE"
38 spit prefsdata_DATA =
40 FILES=`ls -1|grep -v \~`
41 FILES=`echo $FILES`
43 for f in $FILES; do
44 ok=1
45 for i in $EXCEPT; do
46 if test "$i" = "$f"; then
47 ok=0
48 break
50 done
51 if [ -f $f -a $ok = 1 ]; then
52 spitln \\
53 spit " $f"
55 done
58 spitln
59 spitln
61 spitln EXTRA_DIST = '$(prefsdata_DATA)' mkMakefile
62 spitln
63 spitln