myhomelab/src/Makefile.am
2026-03-04 06:09:54 +01:00

19 lines
474 B
Makefile

SUBDIRS = root
bin_SCRIPTS = neuro
CLEANFILES = $(bin_SCRIPTS)
EXTRA_DIST = neuro.in
# ===========================
# Substituição dinâmica
# ===========================
neuro: neuro.in Makefile
@which git >/dev/null || { echo "⚠️ Git não encontrado — instale-o manualmente."; exit 1; }
sed \
-e 's,[@]pythondir[@],$(pythondir),g' \
-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
-e 's,[@]VERSION[@],$(VERSION),g' \
< $(srcdir)/neuro.in > neuro
chmod +x neuro