[MLton-commit] r4136

Stephen Weeks MLton@mlton.org
Wed, 2 Nov 2005 20:24:13 -0800


Fixed for RPM packaging.

----------------------------------------------------------------------

U   mlton/trunk/Makefile

----------------------------------------------------------------------

Modified: mlton/trunk/Makefile
===================================================================
--- mlton/trunk/Makefile	2005-11-03 03:51:11 UTC (rev 4135)
+++ mlton/trunk/Makefile	2005-11-03 04:24:09 UTC (rev 4136)
@@ -21,7 +21,7 @@
 AOUT = mlton-compile
 MLBPATHMAP = $(LIB)/mlb-path-map
 TARGETMAP = $(LIB)/target-map
-SPEC = $(SRC)/package/rpm/mlton.spec
+SPEC = package/rpm/mlton.spec
 LEX = mllex
 PROF = mlprof
 YACC = mlyacc
@@ -259,7 +259,7 @@
 	rm -rf $(SOURCEDIR)
 	mkdir -p $(SOURCEDIR)
 	( cd $(SRC) && tar -cpf - . ) | ( cd $(SOURCEDIR) && tar -xpf - )
-	$(CP) $(SOURCEDIR)/doc/mlton.spec $(TOPDIR)/SPECS/mlton.spec
+	$(CP) $(SOURCEDIR)/$(SPEC) $(TOPDIR)/SPECS/mlton.spec
 	( cd $(TOPDIR)/SOURCES && tar -cpf - mlton-$(VERSION) )		\
 		| $(GZIP) >$(SOURCEDIR).tgz
 	rm -rf $(SOURCEDIR)
@@ -307,7 +307,7 @@
 	@echo 'Instantiating version numbers.'
 	for f in							\
 		package/debian/changelog				\
-		package/rpm/mlton.spec					\
+		$(SPEC)							\
 		package/freebsd/Makefile				\
 		mlton/control/control-flags.sml;			\
 	do								\