Simplify tests/xbps/xbps-rindex structure.
This commit is contained in:
parent
8f36f8e638
commit
6952144d60
1
.gitignore
vendored
1
.gitignore
vendored
@ -26,4 +26,5 @@ doc/xbps_api_doxyfile
|
||||
ftperr.h
|
||||
httperr.h
|
||||
tests/*/*/*/*_test
|
||||
tests/*/*/*_test
|
||||
include/xbps.h
|
||||
|
12
mk/test.mk
12
mk/test.mk
@ -3,16 +3,21 @@
|
||||
OBJS ?= main.o
|
||||
|
||||
.PHONY: all
|
||||
all: $(TEST)
|
||||
all: $(TEST) $(TESTSHELL)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
-rm -f $(TEST) $(OBJS)
|
||||
-rm -f $(TEST) $(TESTSHELL) $(OBJS)
|
||||
|
||||
.PHONY: install
|
||||
install: all
|
||||
install:
|
||||
install -d $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)
|
||||
ifdef TEST
|
||||
install -m755 $(TEST) $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)
|
||||
endif
|
||||
ifdef TESTSHELL
|
||||
install -m755 $(TESTSHELL) $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)
|
||||
endif
|
||||
ifdef EXTRA_FILES
|
||||
for f in $(EXTRA_FILES); do \
|
||||
install -m644 $${f} $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR); \
|
||||
@ -22,6 +27,7 @@ endif
|
||||
.PHONY: uninstall
|
||||
uninstall:
|
||||
-rm -f $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)/$(TEST)
|
||||
-rm -f $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)/$(TESTSHELL)
|
||||
|
||||
%.o: %.c
|
||||
@printf " [CC]\t\t$@\n"
|
||||
|
@ -1,5 +1,8 @@
|
||||
-include ../../../config.mk
|
||||
TOPDIR = ../../..
|
||||
-include $(TOPDIR)/config.mk
|
||||
|
||||
SUBDIRS = common clean
|
||||
TESTSHELL = clean_test
|
||||
TESTSSUBDIR = xbps/xbps-rindex
|
||||
EXTRA_FILES = Kyuafile
|
||||
|
||||
include ../../../mk/subdir.mk
|
||||
include $(TOPDIR)/mk/test.mk
|
||||
|
@ -1 +0,0 @@
|
||||
TESTSSUBDIR = xbps/xbps-rindex
|
@ -1,7 +0,0 @@
|
||||
TOPDIR = ../../../..
|
||||
-include $(TOPDIR)/config.mk
|
||||
|
||||
TEST = clean_test
|
||||
|
||||
include ../Makefile.inc
|
||||
include $(TOPDIR)/mk/test-shell.mk
|
@ -1,15 +0,0 @@
|
||||
TOPDIR = ../../../..
|
||||
-include $(TOPDIR)/config.mk
|
||||
|
||||
include ../Makefile.inc
|
||||
|
||||
all:
|
||||
|
||||
install:
|
||||
install -d $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)
|
||||
install -m644 Kyuafile $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)
|
||||
|
||||
uninstall:
|
||||
-rm -f $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)/Kyuafile
|
||||
|
||||
clean:
|
Loading…
Reference in New Issue
Block a user