mirror of https://github.com/bol-van/zapret/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
396 B
17 lines
396 B
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
|
|
|