-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.am
70 lines (55 loc) · 2.6 KB
/
Makefile.am
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
#==============================================================================
# OpenCity's main automake file
#==============================================================================
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = config docs map sound src viewer
#==============================================================================
# EXTRA_DIST is used to package the files we need
# See the install-data-local target for more information
#==============================================================================
EXTRA_DIST = \
graphism \
opencity.desktop opencity.png \
autopackage/opencity.apspec
#==============================================================================
# Icon and desktop file installation
#==============================================================================
desktopdir = $(datadir)/applications
desktop_DATA = opencity.desktop
pixmapdir = $(datadir)/pixmaps
pixmap_DATA = opencity.png
#==============================================================================
# Install all the graphism directory
#==============================================================================
install-data-local:
test -z "$(pkgdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgdatadir)"
for data in $(EXTRA_DIST); do \
if [ -d "$(srcdir)/$$data" ]; then \
cp -r "$(srcdir)/$$data" "$(DESTDIR)$(pkgdatadir)"/; \
fi; \
done;
@echo -e "\n\r";
@echo "========================================================================";
@echo " OpenCity has been installed successfully in '$(DESTDIR)$(prefix)'";
@echo " Have fun !";
@echo "========================================================================";
@echo -e "\n\r";
#==============================================================================
# Uninstall = Delete everything
#==============================================================================
uninstall-local:
$(RM) -f $(DESTDIR)$(bindir)/opencity
$(RM) -rf $(DESTDIR)$(pkgdatadir)
@echo -e "\n\r";
@echo "========================================================================";
@echo " OpenCity has been uninstalled successfully ";
@echo " Thank you for trying. ";
@echo "========================================================================";
@echo -e "\n\r";
#==============================================================================
# Remove SVN directories from the distribution file
#==============================================================================
dist-hook:
for extra in $(EXTRA_DIST); do \
$(RM) -rf `find $(distdir)/$$extra -name "\.svn" -type d`; \
done;