1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
# configurable stuff 
EXTRACT=/home/per/src/Pike/7.1/bin/extract.pike 
PIKE=pike 
 
# do not alter 
all: modules 
        @echo "2. Rebuilding .xml config files" 
        @for a in configs/*.xml ; do  \ 
                pkg=`echo $$a | sed -e s',.xml,,' -e s',.*/,,'`; \ 
                ./scripts/make_config $$pkg configs/$$pkg.xml ; \ 
        done 
        @echo "3. Rebuilding translation files" 
        @for a in configs/*.xml ; do  \ 
                pkg=`echo $$a | sed -e s',.xml,,' -e s',.*/,,'`; \ 
                ./scripts/build_from_config  configs/$$pkg.xml $(PIKE) $(EXTRACT); \ 
        done 
 
modules: 
        @echo "1. Finding modules" 
        @for a in `find ../modules/ -name '*.pike'` ; do \ 
          if grep -c '#!NO' $$a >/dev/null 2>&1; then \ 
           :;\ 
          else  \ 
            module='"mod_'`echo $$a|sed -e s',../modules/.*/,,' -e s',.pike,,'`'"';\ 
            if grep -c "$$module" $$a >/dev/null 2>&1; then \ 
              ./scripts/make_mod_config $$module $$a; \ 
            fi;\ 
          fi ; \ 
        done 
 
clean: 
        rm configs/*~ 
        rm configs/mod_*.xml