Sfoglia il codice sorgente

* all packages install examples in a subdir

peter 25 anni fa
parent
commit
49dbe721cc

+ 1 - 0
packages/cmem/Makefile

@@ -192,6 +192,7 @@ override EXAMPLEOBJECTS+=testcmem
 
 # Install
 
+EXAMPLESUBDIR=cmem
 ZIPTARGET=install
 
 # Defaults

+ 3 - 0
packages/cmem/Makefile.fpc

@@ -6,6 +6,9 @@
 units=cmem
 examples=testcmem
 
+[install]
+examplesubdir=cmem
+
 [dirs]
 fpcdir=../..
 

+ 1 - 0
packages/ggi/Makefile

@@ -192,6 +192,7 @@ override EXAMPLEOBJECTS+=ggi1
 
 # Install
 
+EXAMPLESUBDIR=ggi
 ZIPTARGET=install
 
 # Defaults

+ 3 - 0
packages/ggi/Makefile.fpc

@@ -6,5 +6,8 @@
 units=gii ggi ggi2d
 examples=ggi1
 
+[install]
+examplesubdir=ggi
+
 [dirs]
 fpcdir=../..

+ 1 - 0
packages/ibase/Makefile

@@ -192,6 +192,7 @@ override EXAMPLEOBJECTS+=testib40 testib60
 
 # Install
 
+EXAMPLESUBDIR=ibase
 ZIPTARGET=install
 
 # Defaults

+ 3 - 0
packages/ibase/Makefile.fpc

@@ -6,6 +6,9 @@
 units=ibase40 ibase60
 examples=testib40 testib60
 
+[install]
+examplesubdir=ibase
+
 [dirs]
 fpcdir=../..
 

+ 1 - 0
packages/inet/Makefile

@@ -192,6 +192,7 @@ override EXAMPLEOBJECTS+=testinet pfinger
 
 # Install
 
+EXAMPLESUBDIR=inet
 ZIPTARGET=install
 
 # Defaults

+ 3 - 0
packages/inet/Makefile.fpc

@@ -6,6 +6,9 @@
 units=inet
 examples=testinet pfinger
 
+[install]
+examplesubdir=inet
+
 [dirs]
 fpcdir=../..
 

+ 1 - 0
packages/mysql/Makefile

@@ -192,6 +192,7 @@ override EXAMPLEOBJECTS+=testdb
 
 # Install
 
+EXAMPLESUBDIR=mysql
 ZIPTARGET=install
 
 # Defaults

+ 3 - 0
packages/mysql/Makefile.fpc

@@ -6,6 +6,9 @@
 units=mysql_com mysql_version mysql
 examples=testdb
 
+[install]
+examplesubdir=mysql
+
 [dirs]
 fpcdir=../..
 

+ 1 - 0
packages/ncurses/Makefile

@@ -192,6 +192,7 @@ override EXAMPLEOBJECTS+=firework testn ocrt_demo edit_demo db_demo
 
 # Install
 
+EXAMPLESUBDIR=ncurses
 ZIPTARGET=install
 
 # Defaults

+ 3 - 0
packages/ncurses/Makefile.fpc

@@ -6,6 +6,9 @@
 units=ncurses panel ncrt ocrt
 examples=firework testn ocrt_demo edit_demo db_demo
 
+[install]
+examplesubdir=ncurses
+
 [dirs]
 fpcdir=../..
 

+ 1 - 0
packages/postgres/Makefile

@@ -192,6 +192,7 @@ override EXAMPLEOBJECTS+=testpg1 testpg2
 
 # Install
 
+EXAMPLESUBDIR=postgres
 ZIPTARGET=install
 
 # Defaults

+ 3 - 0
packages/postgres/Makefile.fpc

@@ -6,5 +6,8 @@
 units=dllist postgres
 examples=testpg1 testpg2
 
+[install]
+examplesubdir=postgres
+
 [dirs]
 fpcdir=../..

+ 1 - 0
packages/regexpr/Makefile

@@ -192,6 +192,7 @@ override EXAMPLEOBJECTS+=testreg1
 
 # Install
 
+EXAMPLESUBDIR=regexpr
 ZIPTARGET=install
 
 # Defaults

+ 3 - 0
packages/regexpr/Makefile.fpc

@@ -6,5 +6,8 @@
 units=regexpr
 examples=testreg1
 
+[install]
+examplesubdir=regexpr
+
 [dirs]
 fpcdir=../..

+ 1 - 0
packages/svgalib/Makefile

@@ -192,6 +192,7 @@ override EXAMPLEOBJECTS+=testvga vgatest
 
 # Install
 
+EXAMPLESUBDIR=svgalib
 ZIPTARGET=install
 
 # Defaults

+ 3 - 0
packages/svgalib/Makefile.fpc

@@ -6,5 +6,8 @@
 units=svgalib vgamouse
 examples=testvga vgatest
 
+[install]
+examplesubdir=svgalib
+
 [dirs]
 fpcdir=../..

+ 1 - 0
packages/syslog/Makefile

@@ -192,6 +192,7 @@ override EXAMPLEOBJECTS+=testlog
 
 # Install
 
+EXAMPLESUBDIR=syslog
 ZIPTARGET=install
 
 # Defaults

+ 3 - 0
packages/syslog/Makefile.fpc

@@ -6,5 +6,8 @@
 units=systemlog
 examples=testlog
 
+[install]
+examplesubdir=syslog
+
 [dirs]
 fpcdir=../..

+ 8 - 3
packages/uncgi/Makefile

@@ -192,6 +192,7 @@ override EXAMPLEOBJECTS+=testcgi
 
 # Install
 
+EXAMPLESUBDIR=uncgi
 ZIPTARGET=install
 
 # Defaults
@@ -778,8 +779,6 @@ install: fpc_install
 
 sourceinstall: fpc_sourceinstall
 
-exampleinstall: fpc_exampleinstall
-
 zipinstall: fpc_zipinstall
 
 zipsourceinstall: fpc_zipsourceinstall
@@ -794,7 +793,7 @@ cleanall: fpc_cleanall
 
 info: fpc_info
 
-.PHONY:  all debug examples test smart shared showinstall install sourceinstall exampleinstall zipinstall zipsourceinstall zipexampleinstall clean distclean cleanall info
+.PHONY:  all debug examples test smart shared showinstall install sourceinstall zipinstall zipsourceinstall zipexampleinstall clean distclean cleanall info
 
 #####################################################################
 # Units
@@ -1179,3 +1178,9 @@ ifneq ($(wildcard fpcmake.loc),)
 include fpcmake.loc
 endif
 
+#####################################################################
+# Users rules
+#####################################################################
+
+exampleinstall: fpc_exampleinstall
+	$(COPY) testcgi.sh testcgi.bat $(EXAMPLEINSTALLDIR)

+ 7 - 0
packages/uncgi/Makefile.fpc

@@ -6,5 +6,12 @@
 units=uncgi
 examples=testcgi
 
+[install]
+examplesubdir=uncgi
+
 [dirs]
 fpcdir=../..
+
+[rules]
+exampleinstall: fpc_exampleinstall
+        $(COPY) testcgi.sh testcgi.bat $(EXAMPLEINSTALLDIR)

+ 1 - 0
packages/utmp/Makefile

@@ -192,6 +192,7 @@ override EXAMPLEOBJECTS+=testutmp
 
 # Install
 
+EXAMPLESUBDIR=utmp
 ZIPTARGET=install
 
 # Defaults

+ 3 - 0
packages/utmp/Makefile.fpc

@@ -6,6 +6,9 @@
 units=utmp
 examples=testutmp
 
+[install]
+examplesubdir=utmp
+
 [dirs]
 fpcdir=../..