From a5e218e29d91ac4f1be59e84fbd0bdbdd00fc424 Mon Sep 17 00:00:00 2001 From: meator Date: Thu, 23 May 2024 20:12:11 +0200 Subject: [PATCH] include: Do not generate xbps.h.in xbps.h.in makes no mention of @@VERSION@@, so xbps.h.in gets copied verbatim to xbps.h. This adds unnecessary complexity and indirection. --- .gitignore | 1 - include/Makefile | 6 +----- include/{xbps.h.in => xbps.h} | 0 3 files changed, 1 insertion(+), 6 deletions(-) rename include/{xbps.h.in => xbps.h} (100%) diff --git a/.gitignore b/.gitignore index 66249eedc..027e0d7c6 100644 --- a/.gitignore +++ b/.gitignore @@ -33,7 +33,6 @@ tests/*/*/*/*_test tests/*/*/*/*_tests tests/*/*/*_test tests/*/*/*_tests -include/xbps.h # vim backup files .*.swp diff --git a/include/Makefile b/include/Makefile index 4b953bc5b..67e6d9c1d 100644 --- a/include/Makefile +++ b/include/Makefile @@ -4,7 +4,7 @@ INCS = xbps.h .PHONY: all all: - sed -e "s|@@VERSION@@|${VERSION}|g" ${INCS}.in > ${INCS} + @: .PHONY: install install: @@ -17,7 +17,3 @@ install: .PHONY: uninstall uninstall: -rm -f $(DESTDIR)$(INCLUDEDIR)/$(INCS) - -.PHONY: clean -clean: - -rm -f ${INCS} diff --git a/include/xbps.h.in b/include/xbps.h similarity index 100% rename from include/xbps.h.in rename to include/xbps.h