Renamed Makefile to Makefile.init
authorJan Vrany <jan.vrany@fit.cvut.cz>
Tue, 15 Apr 2014 22:58:44 +0200
changeset 421 0eb725a26851
parent 419 2f7fa37437e9
child 422 44e2c6a0d23e
Renamed Makefile to Makefile.init
Makefile
Makefile.init
--- a/Makefile	Mon Apr 14 11:44:33 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-#
-# DO NOT EDIT 
-#
-# make uses this file (Makefile) only, if there is no 
-# file named "makefile" in the directory.
-# Our only task is to generate makefile and call make again
-#
-
-
-.PHONY: run
-
-run: makefile
-	$(MAKE) -f makefile
-
-#only needed for the definition of $(TOP)
-include Make.proto
-
-makefile:
-	$(TOP)/rules/stmkmf	
-
-    
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile.init	Tue Apr 15 22:58:44 2014 +0200
@@ -0,0 +1,48 @@
+#
+# DO NOT EDIT 
+#
+# make uses this file (Makefile) only, if there is no 
+# file named "makefile" in the directory.
+# Our only task is to generate makefile and call make again
+#
+
+
+.PHONY: run
+
+run: makefile
+	$(MAKE) -f makefile
+
+#only needed for the definition of $(TOP)
+include Make.proto
+
+makefile:
+	$(TOP)/rules/stmkmf	
+
+    
+#
+# DO NOT EDIT
+#
+# make uses this file (Makefile) only, if there is no
+# file named "makefile" (lower-case m) in the same directory.
+# My only task is to generate the real makefile and call make again.
+# Thereafter, I am no longer used and needed.
+#
+# MACOSX caveat:
+#   as filenames are not case sensitive (in a default setup),
+#   we cannot use the above trick. Therefore, this file is now named
+#   "Makefile.init", and you have to execute "make -f Makefile.init" to
+#   get the initial makefile.  This is now also done by the toplevel CONFIG
+#   script.
+
+.PHONY: run
+
+run: makefile
+	$(MAKE) -f makefile
+
+#only needed for the definition of $(TOP)
+include Make.proto
+
+makefile: mf
+
+mf:
+	$(TOP)/rules/stmkmf