Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
move out of common targets which are only for the test infra
Baptiste Daroussin committed 12 days ago
commit 2bfc744bb490380c8a77cff5629ae786226eb20d
parent be4844d
2 files changed +9 -14
modified mk/common.mk
@@ -15,7 +15,7 @@ CFLAGS+= -Werror=return-type
DEPFILES_NONEMPTY=	$(DEPFILES) /nonexistent
-include $(DEPFILES_NONEMPTY:=)

-
.SUFFIXES: .pico .in .bin .binin .so.1 .so.1in .suppress.in .suppress
+
.SUFFIXES: .pico

.c.o:
	$(CC) -Wall -Wextra -std=gnu17 -D_GNU_SOURCE=1 -MT $@ -MD -MP -MF $*.Tpo -o $@ -c $(CFLAGS) $(LOCAL_CFLAGS) $<
@@ -25,19 +25,6 @@ DEPFILES_NONEMPTY= $(DEPFILES) /nonexistent
	$(CC) -Wall -Wextra -std=gnu17 -D_GNU_SOURCE=1 -MT $@ -MD -MP -MF $*.Tpico -o $@ -c $(CFLAGS) $(LOCAL_CFLAGS) $(SHOBJ_CFLAGS) $<
	mv $*.Tpico $*.Ppico

-
.in:
-
	sed -e 's|@prefix@|$(PREFIX)|g; s|@abs_top_srcdir@|$(top_srcdir)|g' \
-
		-e 's|@VERSION@|$(version)|g' $< > $@
-

-
.binin.bin:
-
	cp $< $@
-

-
.so.1in.so.1:
-
	cp $< $@
-

-
.suppress.in.suppress:
-
	cp $< $@
-

.PHONY: clean clean-files distclean distclean-files check

clean: clean-files
modified tests/Makefile.autosetup
@@ -219,6 +219,14 @@ $(TESTS): $(OBJS) $(top_builddir)/libpkg/libpkg_flat.a
lib/pkg_printf.c: $(top_srcdir)/libpkg/pkg_printf.c
	cp $(top_srcdir)/libpkg/pkg_printf.c $@

+
.SUFFIXES: .bin .binin .so.1 .so.1in
+

+
.binin.bin:
+
	test "$<" = "$@" || cp $< $@
+

+
.so.1in.so.1:
+
	test "$<" = "$@" || cp $< $@
+

.sh:
	install -m 755 $< $@