Update to the newest upstream version.
[vlp.git] / Makefile
1 ###   Includes for QT library
2 QINC=/usr/include/qt3
3
4 ###   QT library directory
5 QLIB=/usr/lib3/
6
7 ###   moc compiler directory
8 MOCDIR=/usr/bin
9
10 ###  Install directory
11 INSTALLDIR=/home/andrzej/vlp3binD
12
13 ###  QT Library linking phrase
14 QLINK=-lqt-mt
15
16
17 all:
18         cd graph; $(MAKE)
19         cd net; $(MAKE)
20         cd kernel; $(MAKE)
21         cd int; $(MAKE)
22         cd edit; $(MAKE)
23         cd lgconfig; $(MAKE)
24         cd preproc; $(MAKE)
25         cd help; $(MAKE)
26
27 clean:
28         cd graph; $(MAKE) clean
29         cd net; $(MAKE) clean
30         cd kernel; $(MAKE) clean
31         cd int; $(MAKE) clean
32         cd edit; $(MAKE) clean
33         cd lgconfig; $(MAKE) clean
34         cd preproc; $(MAKE) clean
35         cd help; $(MAKE) clean
36
37 install:
38         rm -r -f $(INSTALLDIR)
39         mkdir $(INSTALLDIR)
40         mkdir $(INSTALLDIR)/doc
41         mkdir $(INSTALLDIR)/pics
42         mkdir $(INSTALLDIR)/modules
43         mkdir $(INSTALLDIR)/config
44         mkdir $(INSTALLDIR)/compile
45         mkdir $(INSTALLDIR)/doc/lang
46         mkdir $(INSTALLDIR)/examp
47         cp -r examp/* $(INSTALLDIR)/examp
48         cp inst/loglan $(INSTALLDIR)/compile
49         cp inst/gen $(INSTALLDIR)/compile
50         cp preproc/logcomp $(INSTALLDIR)/compile
51         cp inst/logo.bmp $(INSTALLDIR)/config
52         cp lgconfig/lgconfig $(INSTALLDIR)/config
53         cp -r doc/* $(INSTALLDIR)/doc
54         cp net/lognet $(INSTALLDIR)/modules
55         cp int/logint $(INSTALLDIR)/modules     
56         cp graph/loggraph $(INSTALLDIR)/modules
57         cp edit/logedit $(INSTALLDIR)/modules
58         cp inst/close.bmp $(INSTALLDIR)/pics
59         cp kernel/logker $(INSTALLDIR)
60         cp help/loghelp $(INSTALLDIR)/modules
61         cp inst/LICENSE.GNU $(INSTALLDIR)
62         cp inst/LICENSE.QT $(INSTALLDIR)
63         echo node_number=1 > $(INSTALLDIR)/vlp.cfg
64         echo type=explicit >> $(INSTALLDIR)/vlp.cfg
65         echo homedir=$(INSTALLDIR) >> $(INSTALLDIR)/vlp.cfg
66         echo progdir=./ >> $(INSTALLDIR)/vlp.cfg
67         chmod a+rwx $(INSTALLDIR)
68         chmod a+rx $(INSTALLDIR)/doc
69         chmod a+rx $(INSTALLDIR)/pics
70         chmod a+rwx $(INSTALLDIR)/modules
71         chmod a+rx $(INSTALLDIR)/config
72         chmod a+rwx $(INSTALLDIR)/compile
73         chmod a+rx $(INSTALLDIR)/doc/lang
74         chmod a+rwx $(INSTALLDIR)/examp
75         chmod a+rx $(INSTALLDIR)/logker
76         chmod a+rx $(INSTALLDIR)/modules/*
77         chmod a+rx $(INSTALLDIR)/compile/*