Added a test for object targets
This commit is contained in:
parent
edb3b2236f
commit
6d0fa726f7
2
Makefile
2
Makefile
@ -69,6 +69,8 @@ dist:
|
||||
$(PACKAGE)-$(VERSION)/tests/library/Makefile.Darwin \
|
||||
$(PACKAGE)-$(VERSION)/tests/library/Makefile.NetBSD \
|
||||
$(PACKAGE)-$(VERSION)/tests/library/Makefile.Windows \
|
||||
$(PACKAGE)-$(VERSION)/tests/object/project.conf \
|
||||
$(PACKAGE)-$(VERSION)/tests/object/Makefile.NetBSD \
|
||||
$(PACKAGE)-$(VERSION)/tests/plugin/project.conf \
|
||||
$(PACKAGE)-$(VERSION)/tests/plugin/Makefile.Darwin \
|
||||
$(PACKAGE)-$(VERSION)/tests/plugin/Makefile.NetBSD \
|
||||
|
@ -10,7 +10,7 @@ INSTALL = install
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
$(OBJDIR)tests.log: binary/project.conf binary/Makefile.Darwin binary/Makefile.NetBSD binary/Makefile.Windows library/project.conf library/Makefile.Darwin library/Makefile.NetBSD library/Makefile.Windows plugin/Makefile.Darwin plugin/Makefile.NetBSD script/project.conf script/Makefile.NetBSD tests.sh
|
||||
$(OBJDIR)tests.log: binary/project.conf binary/Makefile.Darwin binary/Makefile.NetBSD binary/Makefile.Windows library/project.conf library/Makefile.Darwin library/Makefile.NetBSD library/Makefile.Windows object/project.conf object/Makefile.NetBSD plugin/Makefile.Darwin plugin/Makefile.NetBSD script/project.conf script/Makefile.NetBSD tests.sh
|
||||
./tests.sh -P "$(PREFIX)" -- "$(OBJDIR)tests.log"
|
||||
|
||||
clean:
|
||||
|
34
tests/object/Makefile.NetBSD
Normal file
34
tests/object/Makefile.NetBSD
Normal file
@ -0,0 +1,34 @@
|
||||
TARGETS = $(OBJDIR)object.o
|
||||
OBJDIR =
|
||||
PREFIX = /usr/local
|
||||
DESTDIR =
|
||||
BINDIR = $(PREFIX)/bin
|
||||
SBINDIR = $(PREFIX)/sbin
|
||||
RM = rm -f
|
||||
LN = ln -f
|
||||
MKDIR = mkdir -m 0755 -p
|
||||
INSTALL = install
|
||||
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
object.o_OBJS = $(OBJDIR)object.o
|
||||
object.o_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||
|
||||
$(OBJDIR)object.o: object.c
|
||||
$(CC) $(object.o_CFLAGS) -o $(OBJDIR)object.o -c object.c
|
||||
|
||||
clean:
|
||||
$(RM) -- $(object.o_OBJS)
|
||||
|
||||
distclean: clean
|
||||
$(RM) -- $(TARGETS)
|
||||
|
||||
install: $(TARGETS)
|
||||
$(MKDIR) $(DESTDIR)$(LIBDIR)
|
||||
$(INSTALL) -m 0644 $(OBJDIR)object.o $(DESTDIR)$(LIBDIR)/object.o
|
||||
|
||||
uninstall:
|
||||
$(RM) -- $(DESTDIR)$(LIBDIR)/object.o
|
||||
|
||||
.PHONY: all clean distclean install uninstall
|
7
tests/object/project.conf
Normal file
7
tests/object/project.conf
Normal file
@ -0,0 +1,7 @@
|
||||
targets=object.o
|
||||
dist=Makefile
|
||||
|
||||
[object.o]
|
||||
type=object
|
||||
sources=object.c
|
||||
install=$(LIBDIR)
|
@ -1,7 +1,7 @@
|
||||
targets=tests.log
|
||||
dist=Makefile,tests.sh,binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,library/project.conf,library/Makefile.Darwin,library/Makefile.NetBSD,library/Makefile.Windows,plugin/project.conf,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD
|
||||
dist=Makefile,tests.sh,binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,library/project.conf,library/Makefile.Darwin,library/Makefile.NetBSD,library/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,plugin/project.conf,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD
|
||||
|
||||
[tests.log]
|
||||
type=script
|
||||
script=./tests.sh
|
||||
depends=binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,library/project.conf,library/Makefile.Darwin,library/Makefile.NetBSD,library/Makefile.Windows,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,tests.sh
|
||||
depends=binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,library/project.conf,library/Makefile.Darwin,library/Makefile.NetBSD,library/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,tests.sh
|
||||
|
@ -101,6 +101,7 @@ _test "Darwin" "library"
|
||||
_test "Darwin" "plugin"
|
||||
_test "NetBSD" "binary"
|
||||
_test "NetBSD" "library"
|
||||
_test "NetBSD" "object"
|
||||
_test "NetBSD" "plugin"
|
||||
_test "NetBSD" "script"
|
||||
_test "Windows" "binary"
|
||||
|
Loading…
Reference in New Issue
Block a user