File: Makefile.am

package info (click to toggle)
gsambad 0.1.4-2etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 5,228 kB
  • ctags: 644
  • sloc: ansic: 9,448; sh: 3,637; makefile: 218
file content (76 lines) | stat: -rw-r--r-- 2,701 bytes parent folder | download | duplicates (2)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
## Process this file with automake to produce Makefile.in

VERSION = @VERSION@

SUBDIRS = src po

EXTRA_DIST = \
	autogen.sh

install-data-local:
	@$(NORMAL_INSTALL)
	if test -d $(srcdir)/pixmaps; then \
	   $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/gsambad; \
	   for pixmap in $(srcdir)/pixmaps/*; do \
	     if test -f $$pixmap; then \
	        $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/gsambad; \
	     fi \
	   done \
	fi;
	if test -d $(DESTDIR)$(datadir)/pixmaps; then \
	   cp $(srcdir)/pixmaps/gsambad.png $(DESTDIR)$(datadir)/pixmaps/; \
	fi;
	if test -f $(DESTDIR)$(bindir)/consolehelper && test ! -f $(DESTDIR)$(bindir)/gsambad; then \
	   ln -s $(DESTDIR)$(bindir)/consolehelper $(DESTDIR)$(bindir)/gsambad; \
	fi;
	@echo "Failsafe for a mixed environment"
	if test -f $(DESTDIR)/usr/local/bin/consolehelper && test ! -f $(DESTDIR)/usr/local/bin/gsambad; then \
	   ln -s $(DESTDIR)/usr/local/bin/consolehelper $(DESTDIR)/usr/local/bin/gsambad; \
	fi;
	if test -d $(DESTDIR)$(sysconfdir)/pam.d; then \
	   cp etc/pam.d/gsambad $(DESTDIR)$(sysconfdir)/pam.d/; \
	fi;
	if test -d $(DESTDIR)$(sysconfdir)/security/console.apps; then \
	   cp etc/security/console.apps/gsambad $(DESTDIR)$(sysconfdir)/security/console.apps/; \
	fi;   
	if test -d $(DESTDIR)$(datadir)/applications; then \
	   cp desktop/net-gsambad.desktop $(DESTDIR)$(datadir)/applications/; \
	fi;
	if test ! -d $(DESTDIR)$(datadir)/doc/gsambad; then \
	   $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/gsambad; \
	fi;
	if test -d $(DESTDIR)$(datadir)/doc/gsambad; then \
	   cp AUTHORS $(DESTDIR)$(datadir)/doc/gsambad/; \
	   cp README $(DESTDIR)$(datadir)/doc/gsambad/; \
	   cp ChangeLog $(DESTDIR)$(datadir)/doc/gsambad/; \
	   cp COPYING $(DESTDIR)$(datadir)/doc/gsambad/; \
	fi;
	if test ! -d $(DESTDIR)$(sysconfdir)/gsambad; then \
	   $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gsambad; \
	fi;
	if test -d $(DESTDIR)$(bindir) && test ! -f $(DESTDIR)$(bindir)/gsambadpdf; then \
	   cp scripts/gsambadpdf $(bindir)/; \
	fi;
	@echo Installing example logon script to static /home/netlogon.
	if test ! -d /home/netlogon; then \
	   mkdir -p /home/netlogon; \
	fi;
	if test -d /home/netlogon && test ! -f /home/netlogon/example.bat; then \
	   cp scripts/example.bat /home/netlogon/; \
	fi;
	@echo ""
	@echo "Start GSAMBAD by typing gsambad in a terminal"
	@echo "or start it from the menu."
	@echo ""
	@echo "Send bugreports, comments or questions to magnus-swe@telia.com"
	@echo ""

dist-hook:
	if test -d pixmaps; then \
	  mkdir $(DESTDIR)$(distdir)/pixmaps; \
	  for pixmap in pixmaps/*; do \
	    if test -f $$pixmap; then \
	      cp -p $$pixmap $(DESTDIR)$(distdir)/pixmaps; \
	    fi \
	  done \
	fi