about summary refs log tree commit diff
path: root/src/Makefile
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-03-24T12·49+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-03-24T12·49+0000
commit2dc84e556911407fe75e1ceb6a9fe34ed21725db (patch)
tree1d4bf6ac3ac1f4dadd94bb46c071ca18cb482bfb /src/Makefile
parent9d2f128252ea9dc9b706bec2bfdaa35600190385 (diff)
* Descriptors now have a "system" field specifying the platform that
  the build or run action should be perfomed on.  This ensures that
  descriptors have different hashes on different platforms.

Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 4fd29305978a..6b4c792bbbad 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,2 +1,13 @@
+all: nix nix-instantiate
+
+SYSTEM = $(shell ./config.guess)
+
 nix: nix.cc
-	g++ -g -Wall -o nix nix.cc -ldb_cxx-4
+	g++ -g -Wall -o nix nix.cc -ldb_cxx-4 -DSYSTEM=\"$(SYSTEM)\"
+
+nix-instantiate: nix-instantiate.in
+	sed "s/@SYSTEM@/$(SYSTEM)/" < $^ > $@
+	chmod +x $@
+
+clean:
+	rm -f *.o nix nix-instantiate