Prepare the tests for implicit targets

This commit is contained in:
Pierre Pronchery 2021-01-04 00:00:20 +01:00
parent f7c3540b1a
commit f2945b0c13
11 changed files with 44 additions and 55 deletions

View File

@ -1,23 +1,22 @@
targets=test,test2,test3,test4,test 5
dist=Makefile
[test]
[target::test]
type=binary
sources=test.c,main.c
install=$(BINDIR)
[test2]
[target::test2]
type=binary
sources=test2.m
ldflags=-lobjc
[test3]
[target::test3]
type=binary
sources=test3.cpp
enabled=1
ldflags=-ldl -lsocket -lm
[test4]
[target::test4]
type=binary
enabled=0
sources=test4.asm,test4.S
@ -28,7 +27,7 @@ asflags=-m32
[test4.S]
cppflags=-nostdinc
[test 5]
[target::test 5]
type=binary
sources=test 5.c,main.c
install=$(BINDIR)/test 5

View File

@ -1,26 +1,25 @@
targets=phony,s p a c e s,s p a c e s 2,target,xinstall
dist=Makefile
[phony]
[target::phony]
type=command
command=exit 42
phony=1
[s p a c e s]
[target::s p a c e s]
type=command
command=echo $@
phony=1
[s p a c e s 2]
[target::s p a c e s 2]
type=command
command=echo $@
install=$(PREFIX)
[target]
[target::target]
type=command
command=$(MAKE) command
[xinstall]
[target::xinstall]
type=command
command=$(MAKE) command
install=$(PREFIX)

View File

@ -1,19 +1,18 @@
subdirs=gtkdoc
targets=gtkdoc/example.types,gtkdoc/html.stamp,gtkdoc/tmpl.stamp,gtkdoc/xml.stamp
dist=Makefile
#targets
[gtkdoc/example.types]
[target::gtkdoc/example.types]
type=script
script=../../src/scripts/doc/gtkdoc.sh
depends=../../src/scripts/doc/gtkdoc.sh,../config.sh
[gtkdoc/html.stamp]
[target::gtkdoc/html.stamp]
type=script
script=../../src/scripts/doc/gtkdoc.sh
depends=../../src/scripts/doc/gtkdoc.sh,../config.sh,gtkdoc/example-docs.xml,gtkdoc/xml/gtkdocentities.ent,$(OBJDIR)gtkdoc/xml.stamp,$(OBJDIR)gtkdoc/tmpl.stamp
[gtkdoc/tmpl.stamp]
[target::gtkdoc/tmpl.stamp]
type=script
script=../../src/scripts/doc/gtkdoc.sh
depends=../../src/scripts/doc/gtkdoc.sh,../config.sh,$(OBJDIR)gtkdoc/example.types

View File

@ -1,15 +1,14 @@
targets=main.class,app.class,s p a c e.class
javac=javac
[main.class]
[target::main.class]
type=object
jflags=-verbose
sources=main.java
[app.class]
[target::app.class]
type=object
sources=app.java
[s p a c e.class]
[target::s p a c e.class]
type=object
sources=s p a c e.java

View File

@ -1,14 +1,13 @@
targets=libtest,libs p a c e
ldflags=-ldl -lintl -lossaudio -ltest -lws2_32
dist=Makefile
[libtest]
[target::libtest]
type=library
sources=test.c
depends=a.c,b.c
install=$(LIBDIR)
[libs p a c e]
[target::libs p a c e]
type=library
sources=s p a c e.c
depends=s p a c e.c

View File

@ -1,13 +1,12 @@
targets=libtest,libs p a c e
ldflags=-ldl -lintl -lossaudio -ltest -lws2_32
dist=Makefile
[libtest]
[target::libtest]
type=libtool
sources=test.c
install=$(LIBDIR)
[libs p a c e]
[target::libs p a c e]
type=libtool
sources=s p a c e.c
install=$(LIBDIR)

View File

@ -1,7 +1,6 @@
targets=object.o,object2.o,object3.o
dist=Makefile
[object.o]
[target::object.o]
type=object
sources=object.c
install=$(LIBDIR)
@ -9,11 +8,11 @@ install=$(LIBDIR)
[object.c]
depends=a.c,b.c
[object2.o]
[target::object2.o]
type=object
sources=object2.asm
[object3.o]
[target::object3.o]
type=object
sources=object3.S
cppflags=-nostdinc

View File

@ -1,13 +1,12 @@
targets=test,s p a c e
dist=Makefile
[test]
[target::test]
type=plugin
sources=test.c
depends=a.c,b.c
install=$(LIBDIR)/configure
[s p a c e]
[target::s p a c e]
type=plugin
sources=s p a c e.c
depends=s p a c e.c

View File

@ -1,69 +1,68 @@
subdirs=gtkdoc
targets=clint.log,coverage.log,distcheck.log,fixme.log,htmllint.log,phplint.log,pylint.log,shlint.log,template-test.md,tests.log,xmllint.log
dist=Makefile,binary/project.conf,binary/Makefile.Darwin,binary/Makefile.DeforaOS,binary/Makefile.NetBSD,binary/Makefile.Windows,command/project.conf,command/Makefile.NetBSD,config.sh,include/project.conf,include/Makefile.NetBSD,java/project.conf,java/Makefile.NetBSD,library/project.conf,library/Makefile.Darwin,library/Makefile.Linux,library/Makefile.NetBSD,library/Makefile.Windows,libtool/project.conf,libtool/Makefile.Darwin,libtool/Makefile.Linux,libtool/Makefile.NetBSD,libtool/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,package/project.conf,package/Makefile.NetBSD,package/config.ent.NetBSD,package/config.h.NetBSD,package/config.sh.NetBSD,plugin/project.conf,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,template.md.in,test.db,tests.sh,verilog/project.conf,verilog/Makefile.NetBSD
#targets
[clint.log]
[target::clint.log]
type=script
script=../src/scripts/tests/clint.sh
enabled=0
depends=../src/scripts/tests/clint.sh
[coverage.log]
[target::coverage.log]
type=script
script=../src/scripts/tests/coverage.sh
enabled=0
depends=../src/scripts/tests/coverage.sh
[distcheck.log]
[target::distcheck.log]
type=script
script=../src/scripts/tests/distcheck.sh
enabled=0
depends=../src/scripts/tests/distcheck.sh
[fixme.log]
[target::fixme.log]
type=script
script=../src/scripts/tests/fixme.sh
enabled=0
depends=../src/scripts/tests/fixme.sh
[htmllint.log]
[target::htmllint.log]
type=script
script=../src/scripts/tests/htmllint.sh
enabled=0
depends=../src/scripts/tests/htmllint.sh
[phplint.log]
[target::phplint.log]
type=script
script=../src/scripts/tests/phplint.sh
enabled=0
depends=../src/scripts/tests/phplint.sh
[pylint.log]
[target::pylint.log]
type=script
script=../src/scripts/tests/pylint.sh
enabled=0
depends=../src/scripts/tests/pylint.sh
[shlint.log]
[target::shlint.log]
type=script
script=../src/scripts/tests/shlint.sh
enabled=0
depends=../src/scripts/data/pkgconfig.sh,../src/scripts/doc/docbook.sh,../src/scripts/doc/gtkdoc.sh,../src/scripts/doc/markdown.sh,../src/scripts/po/gettext.sh,../src/scripts/tests/clint.sh,../src/scripts/tests/coverage.sh,../src/scripts/tests/fixme.sh,../src/scripts/tests/htmllint.sh,../src/scripts/tests/phplint.sh,../src/scripts/tests/pylint.sh,../src/scripts/tests/shlint.sh,../src/scripts/tests/xmllint.sh,../src/scripts/tools/appbroker.sh,../src/scripts/tools/platform.sh,../src/scripts/tools/subst.sh,../src/scripts/tools/template.sh,tests.sh
[template-test.md]
[target::template-test.md]
type=script
script=../src/scripts/tools/template.sh
flags=-O DATABASEDIR=.
depends=template.md.in,test.db,../src/scripts/tools/template.sh,../config.sh
[tests.log]
[target::tests.log]
type=script
script=./tests.sh
enabled=0
depends=$(OBJDIR)../tools/configure$(EXEEXT),binary/project.conf,binary/Makefile.Darwin,binary/Makefile.DeforaOS,binary/Makefile.NetBSD,binary/Makefile.Windows,command/project.conf,command/Makefile.NetBSD,include/project.conf,include/Makefile.NetBSD,java/project.conf,java/Makefile.NetBSD,library/project.conf,library/Makefile.Darwin,library/Makefile.Linux,library/Makefile.NetBSD,library/Makefile.Windows,libtool/project.conf,libtool/Makefile.Darwin,libtool/Makefile.Linux,libtool/Makefile.NetBSD,libtool/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,package/project.conf,package/Makefile.NetBSD,package/config.ent.NetBSD,package/config.h.NetBSD,package/config.sh.NetBSD,plugin/project.conf,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,verilog/project.conf,verilog/Makefile.NetBSD,tests.sh
[xmllint.log]
[target::xmllint.log]
type=script
script=../src/scripts/tests/xmllint.sh
enabled=0

View File

@ -1,4 +1,3 @@
targets=test,disabled,phony,s p a c e s,s p a c e s 2
dist=Makefile
[test]
@ -7,13 +6,13 @@ script=./script.sh
prefix=/somewhere/else
install=/somewhere/else/again
[disabled]
[target::disabled]
type=script
script=./script.sh
depends=a.c,b.c
enabled=0
[phony]
[target::phony]
type=script
script=./script.sh
flags=-O TARGET=phony
@ -21,14 +20,14 @@ depends=a.c,b.c
phony=1
install=
[s p a c e s]
[target::s p a c e s]
type=script
script=./s c r i p t.sh
depends=$(OBJDIR)s p a c e s 2
phony=1
install=
[s p a c e s 2]
[target::s p a c e s 2]
type=script
script=./s c r i p t.sh
install=

View File

@ -1,21 +1,20 @@
targets=top.vhdl,top.vvp,top.fpga,s p a c e.fpga
verilog=iverilog
[top.fpga]
[target::top.fpga]
type=object
vflags=-tfpga
sources=top.v
[top.vhdl]
[target::top.vhdl]
type=object
vflags=-tvhdl
sources=top.v
[top.vvp]
[target::top.vvp]
type=object
sources=top.v
[s p a c e.fpga]
[target::s p a c e.fpga]
type=object
vflags=-tfpga
sources=s p a c e.v