Add an "include" test for NetBSD
This commit is contained in:
parent
f4992db978
commit
041cb2f9ac
2
Makefile
2
Makefile
@ -75,6 +75,8 @@ dist:
|
||||
$(PACKAGE)-$(VERSION)/tests/binary/Makefile.Darwin \
|
||||
$(PACKAGE)-$(VERSION)/tests/binary/Makefile.NetBSD \
|
||||
$(PACKAGE)-$(VERSION)/tests/binary/Makefile.Windows \
|
||||
$(PACKAGE)-$(VERSION)/tests/include/project.conf \
|
||||
$(PACKAGE)-$(VERSION)/tests/include/Makefile.NetBSD \
|
||||
$(PACKAGE)-$(VERSION)/tests/library/project.conf \
|
||||
$(PACKAGE)-$(VERSION)/tests/library/Makefile.Darwin \
|
||||
$(PACKAGE)-$(VERSION)/tests/library/Makefile.Linux \
|
||||
|
@ -13,7 +13,7 @@ all: $(TARGETS)
|
||||
$(OBJDIR)shlint.log: ../doc/scripts/shlint.sh
|
||||
../doc/scripts/shlint.sh -P "$(PREFIX)" -- "$(OBJDIR)shlint.log"
|
||||
|
||||
$(OBJDIR)tests.log: $(OBJDIR)../src/configure$(EXEEXT) binary/project.conf binary/Makefile.Darwin binary/Makefile.NetBSD binary/Makefile.Windows 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 plugin/Makefile.Darwin plugin/Makefile.NetBSD script/project.conf script/Makefile.NetBSD tests.sh
|
||||
$(OBJDIR)tests.log: $(OBJDIR)../src/configure$(EXEEXT) binary/project.conf binary/Makefile.Darwin binary/Makefile.NetBSD binary/Makefile.Windows include/project.conf include/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 plugin/Makefile.Darwin plugin/Makefile.NetBSD script/project.conf script/Makefile.NetBSD tests.sh
|
||||
./tests.sh -P "$(PREFIX)" -- "$(OBJDIR)tests.log"
|
||||
|
||||
$(OBJDIR)xmllint.log: ../doc/scripts/xmllint.sh
|
||||
|
30
tests/include/Makefile.NetBSD
Normal file
30
tests/include/Makefile.NetBSD
Normal file
@ -0,0 +1,30 @@
|
||||
OBJDIR =
|
||||
PREFIX = /usr/local
|
||||
DESTDIR =
|
||||
RM = rm -f
|
||||
LN = ln -f
|
||||
MKDIR = mkdir -m 0755 -p
|
||||
INSTALL = install
|
||||
INCLUDEDIR= $(PREFIX)/include
|
||||
|
||||
|
||||
all:
|
||||
|
||||
clean:
|
||||
|
||||
distclean: clean
|
||||
|
||||
install:
|
||||
$(MKDIR) $(DESTDIR)$(INCLUDEDIR)
|
||||
$(INSTALL) -m 0644 stdio.h $(DESTDIR)$(INCLUDEDIR)/stdio.h
|
||||
$(MKDIR) $(DESTDIR)$(INCLUDEDIR)/staging
|
||||
$(INSTALL) -m 0644 stdlib.h $(DESTDIR)$(INCLUDEDIR)/staging/stdlib.h
|
||||
$(MKDIR) $(DESTDIR)$(INCLUDEDIR)/sys
|
||||
$(INSTALL) -m 0644 sys/socket.h $(DESTDIR)$(INCLUDEDIR)/sys/socket.h
|
||||
|
||||
uninstall:
|
||||
$(RM) -- $(DESTDIR)$(INCLUDEDIR)/stdio.h
|
||||
$(RM) -- $(DESTDIR)$(INCLUDEDIR)/staging/stdlib.h
|
||||
$(RM) -- $(DESTDIR)$(INCLUDEDIR)/sys/socket.h
|
||||
|
||||
.PHONY: all clean distclean install uninstall
|
4
tests/include/project.conf
Normal file
4
tests/include/project.conf
Normal file
@ -0,0 +1,4 @@
|
||||
includes=stdio.h,stdlib.h,sys/socket.h
|
||||
|
||||
[stdlib.h]
|
||||
install=$(INCLUDEDIR)/staging
|
@ -1,5 +1,5 @@
|
||||
targets=shlint.log,tests.log,xmllint.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.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,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,include/project.conf,include/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,plugin/project.conf,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD
|
||||
|
||||
[shlint.log]
|
||||
type=script
|
||||
@ -9,7 +9,7 @@ depends=../doc/scripts/shlint.sh
|
||||
[tests.log]
|
||||
type=script
|
||||
script=./tests.sh
|
||||
depends=$(OBJDIR)../src/configure$(EXEEXT),binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,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,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,tests.sh
|
||||
depends=$(OBJDIR)../src/configure$(EXEEXT),binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,include/project.conf,include/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,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,tests.sh
|
||||
|
||||
[xmllint.log]
|
||||
type=script
|
||||
|
@ -77,6 +77,7 @@ _tests()
|
||||
_test "Linux" "library" || ret=2
|
||||
_test "Linux" "libtool" || ret=2
|
||||
_test "NetBSD" "binary" || ret=2
|
||||
_test "NetBSD" "include" || ret=2
|
||||
_test "NetBSD" "library" || ret=2
|
||||
_test "NetBSD" "libtool" || ret=2
|
||||
_test "NetBSD" "object" || ret=2
|
||||
|
Loading…
Reference in New Issue
Block a user