Debian Codegraph @

Makefile

raw symbols SCIP
1 # Makefile
2 #
3 # License: GPL
4 # This program is distributed in the hope that it will be useful,
5 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
6 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
7 # PARTICULAR PURPOSE.
8 #
9 SHELL := bash -e
10 DESTDIR =
11 SHAREDIR = /usr/share/drbl/
12
13 SCRIPTS = bin/* sbin/* $(SHAREDIR)/sbin/* $(SHAREDIR)/bin/*
14
15 all: drbl-sbin-link languages pkg-misc
16
17 build:
18 @echo "Nothing to build."
19
20 drbl-sbin-link:
21 @echo "Files linking..."
22 $(MAKE) -C sbin all
23
24 languages:
25 @echo "Files linking..."
26 $(MAKE) -C lang all
27
28 pkg-misc:
29 @echo "Files in pkg-misc..."
30 $(MAKE) -C pkg/misc all
31
32 install:
33 # install exec files
34 install -d $(DESTDIR)/usr/
35 cp -a sbin bin $(DESTDIR)/usr/
36 rm -f $(DESTDIR)/usr/sbin/Makefile
37 # install setup dir
38 install -d $(DESTDIR)/$(SHAREDIR)/
39 cp -a setup $(DESTDIR)/$(SHAREDIR)/
40 # install other shared files
41 cp -a lang doc pkg pki image prerun postrun scripts/sbin scripts/bin $(DESTDIR)/$(SHAREDIR)/
42 # erase an extra COPYING
43 rm -f $(DESTDIR)/$(SHAREDIR)/pkg/misc/COPYING
44 rm -f $(DESTDIR)/$(SHAREDIR)/pkg/misc/Makefile $(DESTDIR)/$(SHAREDIR)/lang/Makefile
45 rm -f $(DESTDIR)/$(SHAREDIR)/doc/GPL
46 # install config files
47 install -d $(DESTDIR)/etc/drbl/
48 cp -a conf/* $(DESTDIR)/etc/drbl/
49 # install themes
50 install -d $(DESTDIR)/usr/share/gdm/themes/drbl-gdm
51 cp -a themes/* $(DESTDIR)/usr/share/gdm/themes/drbl-gdm/
52
53 clean:
54 $(MAKE) -C sbin clean
55 $(MAKE) -C lang clean