mirror of
https://github.com/troglobit/libite.git
synced 2026-10-25 11:54:46 +00:00
Lay foundation for unit test build framework.
GNU Make double colon rules, rule ;-) Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
b7a8042c87
commit
2ea2357b62
3 files changed
+41
-44
No files matched your search
@@ -19,10 +19,7 @@
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
# THE SOFTWARE.
|
||||
.PHONY: all install clean
|
||||
|
||||
# Figure out root of library, unless used as submodule
|
||||
ROOTDIR ?= $(shell pwd)
|
||||
.PHONY: install test
|
||||
|
||||
#VERSION = $(shell git tag -l | tail -1)
|
||||
VERSION ?= 1.0.0
|
||||
@@ -42,17 +39,6 @@ CPPFLAGS += -D_GNU_SOURCE
|
||||
CPPFLAGS += -W -Wall
|
||||
ARFLAGS = crus
|
||||
|
||||
# Default to silent build, use V=1 to get verbose mode.
|
||||
ifeq ($V,1)
|
||||
Q =
|
||||
PRINT = @true
|
||||
MAKEFLAGS =
|
||||
else
|
||||
Q = @
|
||||
PRINT = @printf
|
||||
MAKEFLAGS = --no-print-directory --silent
|
||||
endif
|
||||
|
||||
DISTFILES = README LICENSE
|
||||
HEADERS = lite.h
|
||||
OBJS := chomp.o copyfile.o dir.o fexist.o fisdir.o fmode.o fsendfile.o
|
||||
@@ -78,8 +64,8 @@ incdir ?= $(prefix)/include
|
||||
#include <rules.mk>
|
||||
include rules.mk
|
||||
|
||||
# Build rules
|
||||
all: $(TARGET)
|
||||
test:
|
||||
$(MAKE) -f rsync.mk
|
||||
|
||||
$(OBJS): Makefile
|
||||
|
||||
@@ -130,12 +116,6 @@ strip: $(TARGET)
|
||||
check: clean
|
||||
$(Q)scan-build $(MAKE) all
|
||||
|
||||
clean:
|
||||
-$(Q)$(RM) $(OBJS) $(DEPS) $(TARGET) $(SOLIB) $(STATICLIB)
|
||||
|
||||
distclean:
|
||||
-$(Q)$(RM) $(JUNK) unittest *.o *.a *.so* *.unittest
|
||||
|
||||
# When called from GNU configure and build system
|
||||
distdir:
|
||||
@git archive --format=tar HEAD | (cd $(distdir); tar xf -)
|
||||
|
||||
Reference in new issue
Block a user