Commits

Anonymous committed b1b87ba

Move Makefile template to the main directory.

Comments (0)

Files changed (4)

 configure                                   []
-Configure.pl                                []
+Makefile.in                                 []
 MAINTAINER                                  [pynie]doc
 MANIFEST                                    []
 README                                      [pynie]doc
+# Copyright (C) 2006-2009, The Perl Foundation.
+# $Id$
+
+# arguments we want to run parrot with
+PARROT_ARGS =
+
+# values from parrot_config
+LOAD_EXT      = @load_ext@
+O             = @o@
+EXE           = @exe@
+MAKE          = @make_c@
+RM_F          = @rm_f@
+PERL          = @perl@
+
+VERSION_DIR   = @versiondir@
+INCLUDE_DIR   = @includedir@$(VERSION_DIR)
+LIB_DIR       = @libdir@$(VERSION_DIR)
+BIN_DIR       = @bindir@
+TOOLS_DIR     = @libdir@$(VERSION_DIR)@slash@tools
+CUR_DIR       = .
+
+
+# Various paths
+PARROT_DYNEXT = $(LIB_DIR)/dynext
+GRAMMAR_GEN   = $(LIB_DIR)/library/PGE/Perl6Grammar.pbc
+NQP           = $(LIB_DIR)/languages/nqp/nqp.pbc
+PCT           = $(LIB_DIR)/library/PCT.pbc
+
+# Setup some commands
+PARROT        = $(BIN_DIR)/parrot$(EXE)
+CAT           = $(PERL) -MExtUtils::Command -e cat
+PBC_TO_EXE    = $(BIN_DIR)/pbc_to_exe$(EXE)
+
+SOURCES = pynie.pir \
+  src/gen_grammar.pir \
+  src/gen_actions.pir \
+  src/gen_builtins.pir \
+  src/parser/indent.pir \
+
+
+BUILTINS_PIR = \
+  src/builtins/funcs.pir \
+  src/builtins/io.pir \
+  src/builtins/lists.pir \
+  src/builtins/oper.pir
+
+
+CLEANUPS = \
+  pynie.pbc \
+  pynie$(EXE) \
+  *.c \
+  *$(O) \
+  src/gen_*.pir \
+  installable_pynie$(EXE)
+
+
+# the default target
+build: pynie$(EXE)
+
+all: build installable
+
+##  targets for building a standalone pynie.
+pynie$(EXE): pynie.pbc
+	$(PBC_TO_EXE) pynie.pbc
+
+# the Pynie compiler
+pynie.pbc: $(SOURCES) $(BUILTINS_PIR)
+	$(PARROT) $(PARROT_ARGS) -o pynie.pbc pynie.pir
+
+src/gen_grammar.pir: src/parser/grammar.pg
+	$(PARROT) $(PARROT_ARGS) $(GRAMMAR_GEN) \
+	    --output=src/gen_grammar.pir src/parser/grammar.pg
+
+src/gen_actions.pir: src/parser/actions.nqp
+	$(PARROT) $(PARROT_ARGS) $(NQP) --output=src/gen_actions.pir \
+	    --encoding=fixed_8 --target=pir src/parser/actions.nqp
+
+src/gen_builtins.pir: $(BUILTINS_PIR)
+	$(CAT) $(BUILTINS_PIR) > src/gen_builtins.pir
+
+installable: installable_pynie$(EXE)
+ 
+installable_pynie$(EXE): pynie.pbc
+	$(PBC_TO_EXE) pynie.pbc --install
+
+##  testing targets
+test    : build
+	$(PERL) Lib/test/parrot/harness Lib/test/parrot
+
+# basic run for missing libs
+test-installable: installable
+	echo "1" | ./installable_pynie$(EXE)
+
+install: installable
+	$(CP) installable_pynie$(EXE) $(BIN_DIR)/pynie$(EXE)
+	$(CHMOD) 0755 $(BIN_DIR)/pynie$(EXE)
+	-$(MKPATH) $(LIB_DIR)/languages/pynie
+	$(CP) pynie.pbc $(LIB_DIR)/languages/pynie/pynie.pbc
+#	-$(MKPATH) $(MANDIR)/man1
+#	$(POD2MAN) doc/running.pod > $(MANDIR)/man1/parrot-pynie.1
+	-$(MKPATH) $(DOC_DIR)/pynie
+	$(CP) $(DOCS) $(DOC_DIR)/pynie
+
+##  cleaning
+clean:
+	$(RM_F) $(CLEANUPS)
+
+distclean: realclean
+
+realclean: clean testclean
+	$(RM_F) Makefile
+
+testclean:
+#	$(RM_F) $(TEST_CLEANUPS)
+
+
+release : MANIFEST
+	[ -d parrot-python-$(VERSION) ] || ln -s $(CUR_DIR) parrot-python-$(VERSION)
+	$(PERL) -lane 'print"parrot-python-$(VERSION)/$$F[0]"unless!length||/#/' MANIFEST | \
+              tar -zcv -T - -f parrot-python-$(VERSION).tar.gz
+	rm parrot-python-$(VERSION)
+
+
+
+# a listing of all targets meant to be called by users
+help:
+	@echo ""
+	@echo "Following targets are available for the user:"
+	@echo ""
+	@echo "  build:             pynie.pbc and pynie$(EXE) executable"
+	@echo "                     This is the default."
+	@echo "  all:               pynie executable and installable"
+	@echo "  installable:       Create libs and self-hosting binaries to be installed."
+	@echo "  install:           Install the installable targets and docs."
+	@echo ""
+	@echo "Testing:"
+	@echo "  test:              Run the test suite."
+	@echo "  test-installable:  Test self-hosting targets."
+	@echo ""
+	@echo "Cleaning:"
+	@echo "  clean:             Basic cleaning up."
+	@echo "  distclean:         Removes also anything built, in theory."
+	@echo "  realclean:         Removes also files generated by configuration."
+	@echo "  testclean:         Clean up test results."
+	@echo ""
+	@echo "Misc:"
+	@echo "  help:              Print this help message."
+	@echo ""

build/Makefile.in

-# Copyright (C) 2006-2009, The Perl Foundation.
-# $Id$
-
-# arguments we want to run parrot with
-PARROT_ARGS =
-
-# values from parrot_config
-LOAD_EXT      = @load_ext@
-O             = @o@
-EXE           = @exe@
-MAKE          = @make_c@
-RM_F          = @rm_f@
-PERL          = @perl@
-
-VERSION_DIR   = @versiondir@
-INCLUDE_DIR   = @includedir@$(VERSION_DIR)
-LIB_DIR       = @libdir@$(VERSION_DIR)
-BIN_DIR       = @bindir@
-TOOLS_DIR     = @libdir@$(VERSION_DIR)@slash@tools
-CUR_DIR       = .
-
-
-# Various paths
-PARROT_DYNEXT = $(LIB_DIR)/dynext
-GRAMMAR_GEN   = $(LIB_DIR)/library/PGE/Perl6Grammar.pbc
-NQP           = $(LIB_DIR)/languages/nqp/nqp.pbc
-PCT           = $(LIB_DIR)/library/PCT.pbc
-
-# Setup some commands
-PARROT        = $(BIN_DIR)/parrot$(EXE)
-CAT           = $(PERL) -MExtUtils::Command -e cat
-PBC_TO_EXE    = $(BIN_DIR)/pbc_to_exe$(EXE)
-
-SOURCES = pynie.pir \
-  src/gen_grammar.pir \
-  src/gen_actions.pir \
-  src/gen_builtins.pir \
-  src/parser/indent.pir \
-
-
-BUILTINS_PIR = \
-  src/builtins/funcs.pir \
-  src/builtins/io.pir \
-  src/builtins/lists.pir \
-  src/builtins/oper.pir
-
-
-CLEANUPS = \
-  pynie.pbc \
-  pynie$(EXE) \
-  *.c \
-  *$(O) \
-  src/gen_*.pir \
-  installable_pynie$(EXE)
-
-
-# the default target
-build: pynie$(EXE)
-
-all: build installable
-
-##  targets for building a standalone pynie.
-pynie$(EXE): pynie.pbc
-	$(PBC_TO_EXE) pynie.pbc
-
-# the Pynie compiler
-pynie.pbc: $(SOURCES) $(BUILTINS_PIR)
-	$(PARROT) $(PARROT_ARGS) -o pynie.pbc pynie.pir
-
-src/gen_grammar.pir: src/parser/grammar.pg
-	$(PARROT) $(PARROT_ARGS) $(GRAMMAR_GEN) \
-	    --output=src/gen_grammar.pir src/parser/grammar.pg
-
-src/gen_actions.pir: src/parser/actions.nqp
-	$(PARROT) $(PARROT_ARGS) $(NQP) --output=src/gen_actions.pir \
-	    --encoding=fixed_8 --target=pir src/parser/actions.nqp
-
-src/gen_builtins.pir: $(BUILTINS_PIR)
-	$(CAT) $(BUILTINS_PIR) > src/gen_builtins.pir
-
-installable: installable_pynie$(EXE)
- 
-installable_pynie$(EXE): pynie.pbc
-	$(PBC_TO_EXE) pynie.pbc --install
-
-##  testing targets
-test    : build
-	$(PERL) Lib/test/parrot/harness Lib/test/parrot
-
-# basic run for missing libs
-test-installable: installable
-	echo "1" | ./installable_pynie$(EXE)
-
-install: installable
-	$(CP) installable_pynie$(EXE) $(BIN_DIR)/pynie$(EXE)
-	$(CHMOD) 0755 $(BIN_DIR)/pynie$(EXE)
-	-$(MKPATH) $(LIB_DIR)/languages/pynie
-	$(CP) pynie.pbc $(LIB_DIR)/languages/pynie/pynie.pbc
-#	-$(MKPATH) $(MANDIR)/man1
-#	$(POD2MAN) doc/running.pod > $(MANDIR)/man1/parrot-pynie.1
-	-$(MKPATH) $(DOC_DIR)/pynie
-	$(CP) $(DOCS) $(DOC_DIR)/pynie
-
-##  cleaning
-clean:
-	$(RM_F) $(CLEANUPS)
-
-distclean: realclean
-
-realclean: clean testclean
-	$(RM_F) Makefile
-
-testclean:
-#	$(RM_F) $(TEST_CLEANUPS)
-
-
-release : MANIFEST
-	[ -d pynie-$(VERSION) ] || ln -s $(CUR_DIR) pynie-$(VERSION)
-	$(PERL) -lane 'print"pynie-$(VERSION)/$$F[0]"unless!length||/#/' MANIFEST | \
-              tar -zcv -T - -f pynie-$(VERSION).tar.gz
-	rm pynie-$(VERSION)
-
-
-
-# a listing of all targets meant to be called by users
-help:
-	@echo ""
-	@echo "Following targets are available for the user:"
-	@echo ""
-	@echo "  build:             pynie.pbc and pynie$(EXE) executable"
-	@echo "                     This is the default."
-	@echo "  all:               pynie executable and installable"
-	@echo "  installable:       Create libs and self-hosting binaries to be installed."
-	@echo "  install:           Install the installable targets and docs."
-	@echo ""
-	@echo "Testing:"
-	@echo "  test:              Run the test suite."
-	@echo "  test-installable:  Test self-hosting targets."
-	@echo ""
-	@echo "Cleaning:"
-	@echo "  clean:             Basic cleaning up."
-	@echo "  distclean:         Removes also anything built, in theory."
-	@echo "  realclean:         Removes also files generated by configuration."
-	@echo "  testclean:         Clean up test results."
-	@echo ""
-	@echo "Misc:"
-	@echo "  help:              Print this help message."
-	@echo ""
 
 echo "Creating Makefile"
 
-`$MAKEFILE_BUILDER build/Makefile.in Makefile`
+`$MAKEFILE_BUILDER Makefile.in Makefile`
 
-echo "You can now use '$MAKE' to build Pynie, and '$MAKE-test' to test it."
+echo "You can now use '$MAKE' to build Pynie, and '$MAKE test' to test it."