Debian Codegraph @

Makefile.am

raw
1 #==============================================================================
2 # OpenCity's main automake file
3 #==============================================================================
4 ACLOCAL_AMFLAGS = -I m4
5 SUBDIRS = config docs map sound src viewer
6
7
8 #==============================================================================
9 # EXTRA_DIST is used to package the files we need
10 # See the install-data-local target for more information
11 #==============================================================================
12 EXTRA_DIST = \
13 graphism \
14 opencity.desktop opencity.png \
15 autopackage/opencity.apspec
16
17
18 #==============================================================================
19 # Icon and desktop file installation
20 #==============================================================================
21 desktopdir = $(datadir)/applications
22 desktop_DATA = opencity.desktop
23
24 pixmapdir = $(datadir)/pixmaps
25 pixmap_DATA = opencity.png
26
27
28 #==============================================================================
29 # Install all the graphism directory
30 #==============================================================================
31 install-data-local:
32 test -z "$(pkgdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgdatadir)"
33 for data in $(EXTRA_DIST); do \
34 if [ -d "$(srcdir)/$$data" ]; then \
35 cp -r "$(srcdir)/$$data" "$(DESTDIR)$(pkgdatadir)"/; \
36 fi; \
37 done;
38
39 @echo -e "\n\r";
40 @echo "========================================================================";
41 @echo " OpenCity has been installed successfully in '$(DESTDIR)$(prefix)'";
42 @echo " Have fun !";
43 @echo "========================================================================";
44 @echo -e "\n\r";
45
46
47 #==============================================================================
48 # Uninstall = Delete everything
49 #==============================================================================
50 uninstall-local:
51 $(RM) -f $(DESTDIR)$(bindir)/opencity
52 $(RM) -rf $(DESTDIR)$(pkgdatadir)
53
54 @echo -e "\n\r";
55 @echo "========================================================================";
56 @echo " OpenCity has been uninstalled successfully ";
57 @echo " Thank you for trying. ";
58 @echo "========================================================================";
59 @echo -e "\n\r";
60
61
62 #==============================================================================
63 # Remove SVN directories from the distribution file
64 #==============================================================================
65 dist-hook:
66 for extra in $(EXTRA_DIST); do \
67 $(RM) -rf `find $(distdir)/$$extra -name "\.svn" -type d`; \
68 done;
69
70