Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2022-05-18 02:31:26 +0200
committerLevente Polyak <anthraxx@archlinux.org>2022-06-22 01:05:02 +0200
commitd94badcd0be4f1f0bdc85a9e17f622373fcc42b2 (patch)
tree09755c43df16dd47d8f99c15213c49315219cb71 /Makefile
parente1a51770b26f3b36f24dc5668253eda23a8c8bcf (diff)
make: split out source files into src folder
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 5 insertions, 22 deletions
diff --git a/Makefile b/Makefile
index 0213482..6146c0d 100644
--- a/Makefile
+++ b/Makefile
@@ -5,27 +5,7 @@ PREFIX = /usr/local
MANDIR = $(PREFIX)/share/man
BUILDDIR = build
-BINPROGS = \
- archco \
- arch-nspawn \
- archrelease \
- archbuild \
- checkpkg \
- commitpkg \
- crossrepomove\
- diffpkg \
- export-pkgbuild-keys \
- finddeps \
- find-libdeps \
- lddd \
- makerepropkg \
- mkarchroot \
- makechrootpkg \
- offload-build \
- rebuildpkgs \
- sogrep
-BINPROGS := $(addprefix $(BUILDDIR)/bin/,$(BINPROGS))
-
+BINPROGS = $(addprefix $(BUILDDIR)/,$(patsubst src/%,bin/%,$(patsubst %.in,%,$(wildcard src/*.in))))
MAKEPKG_CONFIGS=$(wildcard config/makepkg/*)
PACMAN_CONFIGS=$(wildcard config/pacman/*)
SETARCH_ALIASES = $(wildcard config/setarch-aliases.d/*)
@@ -89,6 +69,9 @@ completion: $(COMPLETIONS)
man: $(MANS)
+ifneq ($(wildcard *.in),)
+ $(error Legacy in prog file found: $(wildcard *.in) - please migrate to src/*)
+endif
ifneq ($(wildcard pacman-*.conf),)
$(error Legacy pacman config file found: $(wildcard pacman-*.conf) - please migrate to config/pacman/*)
endif
@@ -112,7 +95,7 @@ $(1)/%: $(2)%.in
@bash -O extglob -n "$$@"
endef
-$(eval $(call buildInScript,build/bin,,555))
+$(eval $(call buildInScript,build/bin,src/,555))
$(foreach completion,$(wildcard contrib/completion/*),$(eval $(call buildInScript,build/$(completion),$(completion)/,444)))
$(BUILDDIR)/doc/%: doc/%.asciidoc doc/asciidoc.conf doc/footer.asciidoc