From 6d21c77474744bcb1447ed2d7abb682ab6fa3076 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 23 Apr 2007 06:25:08 +0000 Subject: [PATCH] make dist will now correctly make a source tarball which will also contain the SMData.smzip. --- stepmania/Makefile.am | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/stepmania/Makefile.am b/stepmania/Makefile.am index 1e2967ff9d..e9f5802f55 100644 --- a/stepmania/Makefile.am +++ b/stepmania/Makefile.am @@ -1,5 +1,28 @@ -# Need 1.7 for subdir support. (Well, 1.4 doesn't work, I don't know if anything between does.) +## 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 = src ACLOCAL_AMFLAGS = -I autoconf/m4 +## Black magic (read: sed) for getting the product ID as defined in code, not by the autotools. +## Quotes are making vim's highlighting of this even worse, so just escape everything, +## including the escapes. Make it lowercase to match ArchHooks::MountInitialFileSystems(). +productID := $(shell sed -nr /define\\s+PRODUCT_ID_BARE/\{s/.*define\\s+PRODUCT_ID_BARE\\s+\(.+\)/\\1/\;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/\;p\;q\} $(srcdir)/src/ProductInfo.h) + +.PHONY: SMData +SMData: + $(srcdir)/Utils/mksmdata.pl $(srcdir) . + +dist-hook: SMData + cp SMData.smzip $(distdir) + mkdir -p $(distdir)/Docs + cp $(srcdir)/Docs/BGAnimation\ conditionals.txt $(srcdir)/Docs/BMA-fmt.txt \ + $(srcdir)/Docs/ConditionalBGA\ Info.txt $(srcdir)/Docs/Copying.MAD \ + $(srcdir)/Docs/Licenses.txt $(distdir)/Docs + cp $(srcdir)/Utils/build.sh $(distdir) + +install-data-hook: $(top_srcdir)/SMData.smzip + mkdir -p "$(DESTDIR)$(datadir)/$(productID)" + $(INSTALL_DATA) $(top_srcdir)/SMData.smzip "$(DESTDIR)$(datadir)/$(productID)" + +uninstall-hook: + rm -f "$(DESTDIR)$(datadir)/$(productID)/SMData.smzip"