mirror of
https://github.com/bol-van/zapret.git
synced 2025-05-24 22:32:58 +03:00
common Makefile. install_easy : compile if bins not found
This commit is contained in:
17
Makefile
Normal file
17
Makefile
Normal file
@@ -0,0 +1,17 @@
|
||||
DIRS := nfq tpws ip2net mdig
|
||||
TGT := binaries/my
|
||||
|
||||
all: clean
|
||||
mkdir -p "$(@D)/$(TGT)"; \
|
||||
for dir in $(DIRS); do \
|
||||
$(MAKE) -C "$(@D)/$$dir" || exit 1; \
|
||||
done ; \
|
||||
for exe in $$(find ${DIRS} -type f -executable); do \
|
||||
mv -f "$(@D)/$$exe" "$(@D)/${TGT}" ; \
|
||||
ln -fs "../${TGT}/$$(basename "$$exe")" "$$exe" ; \
|
||||
done \
|
||||
|
||||
clean:
|
||||
for dir in $(DIRS); do \
|
||||
$(MAKE) -C "$(@D)/$$dir" clean; \
|
||||
done
|
Reference in New Issue
Block a user