瀏覽代碼

* IDE install fixes
* example install added

peter 25 年之前
父節點
當前提交
090e43a89c
共有 5 個文件被更改,包括 59 次插入26 次删除
  1. 23 10
      base/Makefile
  2. 23 11
      base/Makefile.fpc
  3. 4 1
      ide/text/Makefile
  4. 6 1
      ide/text/Makefile.fpc
  5. 3 3
      install/makepack

+ 23 - 10
base/Makefile

@@ -1372,7 +1372,7 @@ endif
 #######################################
 
 demo_install:
-	$(MAKE) -C $(CVSINSTALL)/demo installexamples
+	$(MAKE) -C $(CVSINSTALL)/demo sourceinstall
 
 man_install:
 	$(MAKE) -C $(CVSINSTALL)/man installman
@@ -1410,7 +1410,7 @@ optcompzip:
 # Install
 ##########################################################################
 
-.PHONY: installer
+.PHONY: installer installersrc
 
 INSTALLERBUILDDIR=fpinst
 
@@ -1433,7 +1433,7 @@ installersrc:
 # Packaging
 ##########################################################################
 
-.PHONY: all clean distclean build installbase zipinstall zipinstallbase zipinstallfcl \
+.PHONY: all clean distclean build install installbase zipinstall zipinstallbase zipinstallfcl \
 	zipinstallpackages
 
 export RELEASE DESTZIPDIR
@@ -1441,13 +1441,13 @@ export RELEASE DESTZIPDIR
 all: build
 
 clean: $(addsuffix _distclean,$(DIROBJECTS))
-	$(DEL) build-stamp.*
+	$(DEL) build-stamp
 
 distclean: clean
 
 
-build: build-stamp.$(OS_TARGET)
-build-stamp.$(OS_TARGET):
+build: build-stamp
+build-stamp:
 # create new compiler
 ifeq ($(OS_TARGET),win32)
 	-$(MAKE) compiler_cycle
@@ -1473,9 +1473,9 @@ endif
 ifdef IDE
 	-$(MAKE) ide_full $(BUILDOPTS)
 endif
-	$(ECHO) Build > build-stamp.$(OS_TARGET)
+	$(ECHO) Build > build-stamp
 
-installbase: build-stamp.$(OS_TARGET)
+installbase: build-stamp
 # create dirs
 	$(MKDIR) $(BASEINSTALLDIR)
 	$(MKDIR) $(DOCINSTALLDIR)
@@ -1500,7 +1500,7 @@ endif
 	$(MAKE) compiler_install $(INSTALLOPTS)
 	$(MAKE) rtl_install $(INSTALLOPTS)
 
-install: build-stamp.$(OS_TARGET)
+install: build-stamp
 	$(MAKE) installbase $(INSTALLOPTS)
 	$(MAKE) utils_install $(INSTALLOPTS)
 	$(MAKE) api_install $(INSTALLOPTS)
@@ -1509,8 +1509,14 @@ install: build-stamp.$(OS_TARGET)
 ifdef IDE
 	$(NOSTOP)$(MAKE) ide_install $(BUILDOPTS)
 endif
+# install examples
+ifndef SNAPSHOT
+	$(MAKE) fcl_exampleinstall $(INSTALLOPTS)
+	$(MAKE) api_exampleinstall $(INSTALLOPTS)
+	$(MAKE) packages_exampleinstall $(INSTALLOPTS)
+endif
 
-zipinstall: build-stamp.$(OS_TARGET)
+zipinstall: build-stamp
 	$(MAKE) fpc_zipinstall ZIPTARGET=installbase PACKAGENAME=base $(INSTALLOPTS)
 	$(MAKE) utils_zipinstall $(INSTALLOPTS)
 	$(MAKE) api_zipinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
@@ -1519,6 +1525,11 @@ zipinstall: build-stamp.$(OS_TARGET)
 ifdef IDE
 	$(NOSTOP)$(MAKE) ide_zipinstall $(INSTALLOPTS)
 endif
+ifndef SNAPSHOT
+	$(MAKE) fcl_zipexampleinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
+	$(MAKE) api_zipexampleinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
+	$(MAKE) packages_zipexampleinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
+endif
 
 
 ##########################################################################
@@ -1556,6 +1567,8 @@ demozip:
 # Source targets
 ##########################################################################
 
+.PHONY: sourcebase sourcezip
+
 sourcebase:
 # base Makefiles needed for sources
 	$(MKDIR) $(SOURCEINSTALLDIR)

+ 23 - 11
base/Makefile.fpc

@@ -126,7 +126,6 @@ endif
 endif
 endif
 
-
 [rules]
 # These values can change
 unexport FPC_VERSION OS_SOURCE
@@ -191,7 +190,7 @@ endif
 #######################################
 
 demo_install:
-        $(MAKE) -C $(CVSINSTALL)/demo installexamples
+        $(MAKE) -C $(CVSINSTALL)/demo sourceinstall
 
 man_install:
         $(MAKE) -C $(CVSINSTALL)/man installman
@@ -229,7 +228,7 @@ optcompzip:
 # Install
 ##########################################################################
 
-.PHONY: installer
+.PHONY: installer installersrc
 
 INSTALLERBUILDDIR=fpinst
 
@@ -252,7 +251,7 @@ installersrc:
 # Packaging
 ##########################################################################
 
-.PHONY: all clean distclean build installbase zipinstall zipinstallbase zipinstallfcl \
+.PHONY: all clean distclean build install installbase zipinstall zipinstallbase zipinstallfcl \
         zipinstallpackages
 
 export RELEASE DESTZIPDIR
@@ -260,13 +259,13 @@ export RELEASE DESTZIPDIR
 all: build
 
 clean: $(addsuffix _distclean,$(DIROBJECTS))
-        $(DEL) build-stamp.*
+        $(DEL) build-stamp
 
 distclean: clean
 
 
-build: build-stamp.$(OS_TARGET)
-build-stamp.$(OS_TARGET):
+build: build-stamp
+build-stamp:
 # create new compiler
 ifeq ($(OS_TARGET),win32)
         -$(MAKE) compiler_cycle
@@ -292,9 +291,9 @@ endif
 ifdef IDE
         -$(MAKE) ide_full $(BUILDOPTS)
 endif
-        $(ECHO) Build > build-stamp.$(OS_TARGET)
+        $(ECHO) Build > build-stamp
 
-installbase: build-stamp.$(OS_TARGET)
+installbase: build-stamp
 # create dirs
         $(MKDIR) $(BASEINSTALLDIR)
         $(MKDIR) $(DOCINSTALLDIR)
@@ -319,7 +318,7 @@ endif
         $(MAKE) compiler_install $(INSTALLOPTS)
         $(MAKE) rtl_install $(INSTALLOPTS)
 
-install: build-stamp.$(OS_TARGET)
+install: build-stamp
         $(MAKE) installbase $(INSTALLOPTS)
         $(MAKE) utils_install $(INSTALLOPTS)
         $(MAKE) api_install $(INSTALLOPTS)
@@ -328,8 +327,14 @@ install: build-stamp.$(OS_TARGET)
 ifdef IDE
         $(NOSTOP)$(MAKE) ide_install $(BUILDOPTS)
 endif
+# install examples
+ifndef SNAPSHOT
+        $(MAKE) fcl_exampleinstall $(INSTALLOPTS)
+        $(MAKE) api_exampleinstall $(INSTALLOPTS)
+        $(MAKE) packages_exampleinstall $(INSTALLOPTS)
+endif
 
-zipinstall: build-stamp.$(OS_TARGET)
+zipinstall: build-stamp
         $(MAKE) fpc_zipinstall ZIPTARGET=installbase PACKAGENAME=base $(INSTALLOPTS)
         $(MAKE) utils_zipinstall $(INSTALLOPTS)
         $(MAKE) api_zipinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
@@ -338,6 +343,11 @@ zipinstall: build-stamp.$(OS_TARGET)
 ifdef IDE
         $(NOSTOP)$(MAKE) ide_zipinstall $(INSTALLOPTS)
 endif
+ifndef SNAPSHOT
+        $(MAKE) fcl_zipexampleinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
+        $(MAKE) api_zipexampleinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
+        $(MAKE) packages_zipexampleinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
+endif
 
 
 ##########################################################################
@@ -375,6 +385,8 @@ demozip:
 # Source targets
 ##########################################################################
 
+.PHONY: sourcebase sourcezip
+
 sourcebase:
 # base Makefiles needed for sources
         $(MKDIR) $(SOURCEINSTALLDIR)

+ 4 - 1
ide/text/Makefile

@@ -192,6 +192,7 @@ override RSTOBJECTS+=fpstrings
 
 # Install
 
+DATAINSTALLDIR=$(BASEINSTALLDIR)/ide
 ZIPTARGET=install
 
 # Defaults
@@ -1342,8 +1343,10 @@ clean: fpc_cleanall
 #
 # Installation
 #
+
 install: fpc_install
-	$(INSTALL) $(wildcard *.pt) $(wildcard *.tdf) readme.txt $(BININSTALLDIR)
+	$(MKDIR) $(DATAINSTALLDIR)
+	$(INSTALL) $(wildcard *.pt) $(wildcard *.tdf) readme.txt $(DATAINSTALLDIR)
 
 #
 # Misc

+ 6 - 1
ide/text/Makefile.fpc

@@ -6,6 +6,9 @@
 programs=fp
 rst=fpstrings
 
+[install]
+datadir=$(BASEINSTALLDIR)/ide
+
 [dirs]
 fpcdir=../..
 
@@ -81,8 +84,10 @@ clean: fpc_cleanall
 #
 # Installation
 #
+
 install: fpc_install
-        $(INSTALL) $(wildcard *.pt) $(wildcard *.tdf) readme.txt $(BININSTALLDIR)
+        $(MKDIR) $(DATAINSTALLDIR)
+        $(INSTALL) $(wildcard *.pt) $(wildcard *.tdf) readme.txt $(DATAINSTALLDIR)
 
 #
 # Misc

+ 3 - 3
install/makepack

@@ -5,7 +5,7 @@
 #
 
 # Version
-VERSION=0.99.14
+VERSION=1.00
 RELEASE=ELF
 
 unset FPCDIR
@@ -16,7 +16,7 @@ make docs
 make demo
 
 SOURCES=`/bin/ls *src.tar.gz`
-FILES=`/bin/ls *linux.tar.gz`
+FILES=`/bin/ls *linux.tar.gz *exm.tar.gz`
 RELFILES="binary.tar sources.tar demo.tar.gz docs.tar.gz install.sh"
 
 echo Creating binary.tar
@@ -25,4 +25,4 @@ echo Creating sources.tar
 tar cf sources.tar $SOURCES
 
 echo Creating fpc-$VERSION.$RELEASE.tar
-tar cf fpc-$VERSION.$RELEASE.tar $RELFILES 
+tar cf fpc-$VERSION.$RELEASE.tar $RELFILES