-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure
executable file
·32 lines (32 loc) · 1.18 KB
/
configure
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
#!/bin/sh
test -f version.h || exit 1
rm -f Makefile
for MODUL in generate runform runform/colquery runform/regex runform/elk runform/crypt runform/membed; do
( cd $MODUL; make clean; ) >/dev/null
done
test "$1" = "clean" && exit
cat >Makefile <<EOF
ARX=/opt/arx
all: bin
@echo 'you can now run "sudo make install"'
bin: runform/runform generate/adjfield
install: bin \$(DESTDIR)\$(ARX)/bin
@chmod u=rwx,g=rx,o=rx generate/makeform generate/editform generate/adjfield generate/extractsql
@chmod 2751 runform/runform
@chmod u=rw,g=r,o=r generate/formax.frm
@cp -p generate/makeform generate/editform generate/adjfield generate/extractsql runform/runform \$(DESTDIR)\$(ARX)/bin
@cp -p generate/formax.frm \$(DESTDIR)\$(ARX)/lib
@cp -r runform \$(DESTDIR)\$(ARX)
@chmod -R u=rwX,g=rX,o=rX \$(DESTDIR)\$(ARX)/runform
@if [ -d \$(DESTDIR)/etc/profile.d ]; then cp generate/arx.sh \$(DESTDIR)/etc/profile.d; chmod 755 \$(DESTDIR)/etc/profile.d; else true; fi
\$(DESTDIR)\$(ARX)/bin:
@for D in bin lib; do mkdir -m755 -p \$(DESTDIR)\$(ARX)/\$\$D; done
generate/adjfield:
cd generate; make
runform/runform:
cd runform; make
clean:
./configure clean
EOF
echo 'you can now run "make"' >&2
exit