forked from jsirex/stepmania
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
34 lines (27 loc) · 1.18 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
## Need 1.7 for subdir support. (Well, 1.4 doesn't work, I don't know if anything between does.)
AUTOMAKE_OPTIONS = 1.7 foreign
SUBDIRS = bundle src
ACLOCAL_AMFLAGS = -I autoconf/m4
installFiles = src/stepmania
if HAVE_GTK
installFiles += src/GtkModule.so
endif
installData = $(srcdir)/Announcers $(srcdir)/BGAnimations $(srcdir)/Themes $(srcdir)/Characters $(srcdir)/Scripts $(srcdir)/Courses $(srcdir)/BackgroundEffects $(srcdir)/Data $(srcdir)/BackgroundTransitions $(srcdir)/Docs $(srcdir)/NoteSkins
.PHONY: SMData
SMData:
$(srcdir)/Utils/CreatePackage.pl $(srcdir) .
dist-hook: SMData
mkdir -p "$(distdir)/Packages"
mv GameData.smzip "$(distdir)/Packages"
cp -r "$(srcdir)/Docs" "$(distdir)"
cp -r -t "$(distdir)" $(installFiles)
install-exec-hook:
mkdir -p "$(DESTDIR)$(prefix)/stepmania-$(VERSION)"
$(INSTALL) $(installFiles) "$(DESTDIR)$(prefix)/stepmania-$(VERSION)"
install-data-local:
mkdir -p "$(DESTDIR)$(prefix)/stepmania-$(VERSION)/Songs"
cp -r -t "$(DESTDIR)$(prefix)/stepmania-$(VERSION)" $(installData)
uninstall-hook:
rm -f "$(DESTDIR)$(prefix)/stepmania-$(VERSION)/stepmania"
rm -f "$(DESTDIR)$(prefix)/stepmania-$(VERSION)/GtkModule.so"
# todo: properly remove data