чување 8818957a9cc7358e79ce38d9562e8505185a1fb1
родитељ 01ce0d7e91f15f599a988ce1cb199039679309c4
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Sat, 24 Feb 2024 20:58:30 +0100
Move make helper scripts to lib/
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 6, додавања: 12(+), брисања: 11(-)
diff --git a/Makefile b/Makefile
@@ -2,11 +2,11 @@ include config.mk
.SUFFIXES: .1.in .1 .h.in .h .c .o
-.1.in.1: version date
- sh -x replacepat $< > $@
+.1.in.1:
+ sh -x lib/replacepat $< > $@
-.h.in.h: version date
- sh -x replacepat $< > $@
+.h.in.h:
+ sh -x lib/replacepat $< > $@
all: $(PROG) $(MANPAGE) examples
@@ -14,13 +14,17 @@ examples:
make -C examples all
date:
- sh makedate
+ sh lib/makedate
version:
- sh makeversion
+ sh lib/makeversion
slweb.o: slweb.c defs.h utf8.h version.h
+$(PROG).1: $(PROG).1.in version date
+
+version.h: version.h.in version date
+
utf8.o: utf8.c utf8.h
strlcpy.o: strlcpy.c
@@ -30,9 +34,6 @@ strlcat.o: strlcat.c
$(PROG): $(OBJS)
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
-examples:
- make -C examples all
-
clean:
make -C examples clean
rm -f version date version.h *.o *.xz *~ $(PROG) $(MANPAGE)
@@ -55,9 +56,9 @@ uninstall:
rmdir $(BINDIR) 2>/dev/null || true
test: all
- sh runtests
+ sh lib/runtests
pack: all version
- sh -x mkpack
+ sh -x lib/mkpack
.PHONY: all clean examples install uninstall pack test
diff --git a/makedate b/lib/makedate
diff --git a/makeversion b/lib/makeversion
diff --git a/mkpack b/lib/mkpack
diff --git a/replacepat b/lib/replacepat
diff --git a/runtests b/lib/runtests