Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
First stab at 'make install'
  • Loading branch information
bschmalhofer committed Mar 9, 2009
1 parent dcc8595 commit 1ff26e9
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 2 deletions.
45 changes: 43 additions & 2 deletions build/templates/Makefile.in
@@ -1,5 +1,12 @@
# Copyright (C) 2006-2009, The Perl Foundation.
# $Id$
## arguments we want to run parrot with
PARROT_ARGS =

## configuration settings
VERSION_DIR = @versiondir@
BIN_DIR = @bin_dir@
LIB_DIR = @lib_dir@$(VERSION_DIR)
DOC_DIR = @doc_dir@$(VERSION_DIR)
MANDIR = @mandir@$(VERSION_DIR)

# Set up extensions
LOAD_EXT = @load_ext@
Expand All @@ -16,6 +23,9 @@ DYNEXT_DIR = dynext
MAKE = @make_c@
PARROT = $(BUILD_DIR)/parrot@exe@
PERL = @perl@
CHMOD = @chmod@
CP = @cp@
MKPATH = @mkpath@
RM_F = @rm_f@
NQP = $(BUILD_DIR)/compilers/nqp/nqp.pbc
PCT = $(BUILD_DIR)/runtime/parrot/library/PCT.pbc
Expand Down Expand Up @@ -130,6 +140,7 @@ help:
Makefile: build/templates/Makefile.in
$(PERL) Configure.pl


# Target for building a standalone Pipp.
#pipp$(EXE): library/pipplib.pbc pipp.pbc $(PHP_EXT) Test.pir
pipp.pbc: $(PIPP_GROUP) library/pipplib.pbc $(PHP_EXT)
Expand Down Expand Up @@ -177,6 +188,36 @@ pipp.pbc: \
Test.pir: Test.php pipp.pbc
$(PARROT) pipp.pbc --target=pir --output=Test.pir Test.php

installable: installable_pipp@exe@

installable_pipp@exe@: pipp.pbc
$(PBC_TO_EXE) pipp.pbc --install

install: installable
# $(MAKE) $(OPS_DIR) install
$(MAKE) $(PMC_DIR) install
$(CP) installable_pipp@exe@ $(BIN_DIR)/parrot-pipp@exe@
$(CHMOD) 0755 $(BIN_DIR)/parrot-pipp@exe@
-$(MKPATH) $(LIB_DIR)/languages/pipp
$(CP) pipp.pbc $(LIB_DIR)/languages/pipp/pipp.pbc
-$(MKPATH) $(LIB_DIR)/languages/pipp/library
$(CP) library/*.pbc $(LIB_DIR)/languages/pipp/library
-$(MKPATH) $(LIB_DIR)/languages/pipp/dynext
$(CP) dynext/*$(LOAD_EXT) $(LIB_DIR)/languages/pipp/dynext

# -$(MKPATH) $(MANDIR)/man1
# $(POD2MAN) doc/running.pod > $(MANDIR)/man1/parrot-pipp.1
# -$(MKPATH) $(DOC_DIR)/languages/pipp
# $(CP) $(DOCS) $(DOC_DIR)/languages/pipp

win32-inno-installer: installable
# -$(MKPATH) man/man1
# $(POD2MAN) doc/running.pod > man/man1/parrot-pipp.1
# -$(MKPATH) man/html
# pod2html --infile doc/running.pod --outfile man/html/parrot-pipp.html
$(CP) installable_pipp@exe@ parrot-pipp.exe
$(PERL) $(LIB_DIR)/tools/dev/mk_inno_language.pl pipp
iscc parrot-pipp.iss

test: all
- $(PERL) t/harness
Expand Down
8 changes: 8 additions & 0 deletions build/templates/src/pmc/Makefile.in
@@ -1,6 +1,7 @@
# Build the PMCs for Pipp.

# Set up commands
CP = @cp@
PERL = @perl@
RM_F = @rm_f@
PMCBUILD = $(PERL) @build_dir@/tools/build/dynpmc.pl
Expand All @@ -11,6 +12,9 @@ CFLAGS = @ccflags@ @cc_shared@ @cc_debug@ @ccwarn@ @cc_hasjit@ @cg_flag@
BUILD_DIR = @build_dir@
INCLUDE_DIR = $(BUILD_DIR)/include
DYNEXT_DIR = ../../dynext
VERSION_DIR = @versiondir@
LIB_DIR = @libdir@$(VERSION_DIR)
INSTALL_DIR = $(LIB_DIR)/dynext

# Set up extensions
LOAD_EXT = @load_ext@
Expand Down Expand Up @@ -62,6 +66,10 @@ $(PIPP_GROUP): $(PMC_SOURCES)
$(PMCBUILD) linklibs $(PMCS)
$(PMCBUILD) copy "--destination=$(DYNEXT_DIR)" $(PMCS)

install:
#IF(cygwin or hpux): CHMOD 0775 "*$(LOAD_EXT)"
$(CP) "*$(LOAD_EXT)" $(INSTALL_DIR)

# cleaning up
clean:
$(RM_F) "*dump" "php*.c" "pmc_*h" "pipp_group.h" "*$(O)" "*$(LOAD_EXT)"
Expand Down

0 comments on commit 1ff26e9

Please sign in to comment.