Contents of /alx-src/trunk/alxconfig-ng/Makefile
Parent Directory | Revision Log
Revision 380 -
(show annotations)
(download)
Mon Apr 14 13:37:52 2008 UTC (16 years, 2 months ago) by niro
File size: 1924 byte(s)
Mon Apr 14 13:37:52 2008 UTC (16 years, 2 months ago) by niro
File size: 1924 byte(s)
-added a makefile
1 | # Magellan Package Management |
2 | # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/Makefile,v 1.1 2008-04-14 13:37:52 niro Exp $ |
3 | |
4 | DESTDIR= |
5 | |
6 | prefix=/usr |
7 | sysconfdir=/etc |
8 | alxconfdir=$(sysconfdir)/alxconfig-ng |
9 | libdir=$(prefix)/lib/alxconfig-ng |
10 | sbindir=$(prefix)/sbin |
11 | bindir=$(prefix)/bin |
12 | |
13 | all: install |
14 | |
15 | create-dirs: |
16 | for i in $(DESTDIR)/$(libdir)/skel \ |
17 | $(DESTDIR)/$(alxconfdir)/ica-sessions/icons \ |
18 | $(DESTDIR)/$(sysconfdir)/rc.d/init.d \ |
19 | $(DESTDIR)/$(libdir)/functions \ |
20 | $(DESTDIR)/$(libdir)/bin \ |
21 | $(DESTDIR)/$(sbindir) \ |
22 | $(DESTDIR)/$(bindir) \ |
23 | do \ |
24 | [ ! -d "${i}" ] && install -d "${i}"; |
25 | done |
26 | |
27 | install-files: |
28 | install -m 0755 bin/X-no-wm.sh $(DESTDIR)$(sbindir)/X-no-wm |
29 | install -m 0755 bin/update-alx.sh $(DESTDIR)$(sbindir)/update-alx |
30 | install -m 0755 bin/txt2html.sh $(DESTDIR)$(bindir)/txt2html |
31 | install -m 0755 bin/set_mouse_speed.sh $(DESTDIR)$(bindir)/set_mouse_speed |
32 | |
33 | # inits |
34 | for i in alxsetstate alxsettings xdm-alx \ |
35 | do \ |
36 | install -m 0755 init.d/"${i}" $(DESTDIR)$(sysconfdir)/rc.d/init.d/"${i}"; |
37 | done |
38 | |
39 | # lib bins |
40 | for i in bin/user_shutdown.sh bin/user_reboot.sh \ |
41 | do \ |
42 | install -m 0755 ${i} $(DESTDIR)$(libdir)/bin; |
43 | done |
44 | |
45 | # functions |
46 | for i in config_network.sh \ |
47 | config_printers.sh \ |
48 | config_sessions.sh \ |
49 | config_x11.sh \ |
50 | config_auth.sh \ |
51 | config_ssh_auth.sh \ |
52 | config_modules.sh \ |
53 | mysqlfunctions \ |
54 | serial_functions.sh |
55 | do \ |
56 | install -m 0644 functions/"${i}" $(DESTDIR)$(libdir)/functions/$(basename "${i}" .sh); |
57 | done |
58 | |
59 | # configs |
60 | install -m 0644 conf/config.rc $(DESTDIR)$(alxconfdir) |
61 | |
62 | # icons |
63 | install -m 0644 icons/default.png $(DESTDIR)$(alxconfdir)/ica-sessions/icons |
64 | |
65 | # skeletons |
66 | for i in fluxbox net idesk samba xtdesktop\ |
67 | do \ |
68 | [ ! -d $(DESTDIR)$(alxconfdir)/skel/"${i}" ] && install -d $(DESTDIR)$(alxconfdir)/skel/"${i}"; |
69 | install -m 0644 skel/"${i}"/* $(DESTDIR)$(alxconfdir)/skel/"${i}"/; |
70 | done |
71 | |
72 | install: create-dirs \ |
73 | install-files \ |
74 | |
75 | .PHONY: all install |