File: Makefile.am

package info (click to toggle)
opencity 0.0.4stable-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 8,852 kB
  • ctags: 1,799
  • sloc: cpp: 13,913; sh: 3,435; ansic: 468; makefile: 285
file content (77 lines) | stat: -rw-r--r-- 2,652 bytes parent folder | download
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
77
#==============================================================================
# OpenCity's main automake file
#==============================================================================

SUBDIRS = \
	src viewer


EXTRA_DIST = \
	graphism model sound texture COPYRIGHT


dist_pkgdata_DATA = \
	OpenCity.desktop OpenCity.png


nobase_dist_pkgdata_DATA = \
	autopackage/opencity.apspec


#==============================================================================
# "config" directory
#==============================================================================
nobase_dist_pkgdata_DATA += \
	config/graphism.conf config/opencity.conf


#==============================================================================
# "docs" directory
#==============================================================================
nobase_dist_pkgdata_DATA += \
	docs/FAQ.txt docs/LEGGIMI.txt


#==============================================================================
# Install all the EXTRA_DIST directories
#==============================================================================
install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(pkgdatadir);
	for data in $(EXTRA_DIST); do \
		if [ -d $(srcdir)/$$data ]; then \
			$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$$data && \
			cp -r $(srcdir)/$$data/* $(DESTDIR)$(pkgdatadir)/$$data/; \
		fi; \
	done;
#	$(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/;
#	$(INSTALL_DATA) $(srcdir)/OpenCity.png $(DESTDIR)$(datadir)/pixmaps/;
#	$(mkinstalldirs) $(DESTDIR)$(datadir)/applications/;
#	$(INSTALL_DATA) $(srcdir)/OpenCity.desktop $(DESTDIR)$(datadir)/applications/;

	@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)$(datadir)/pixmaps/OpenCity.png
#	$(RM) -f $(DESTDIR)$(datadir)/applications/OpenCity.desktop
	$(RM) -f $(DESTDIR)$(bindir)/opencity
	$(RM) -rf $(DESTDIR)$(pkgdatadir)


#==============================================================================
# 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;