Skip to content

Commit

Permalink
Makefile: separate generated modules to two zips
Browse files Browse the repository at this point in the history
so that they are separately installable.
  • Loading branch information
didib committed Dec 18, 2015
1 parent e313cc7 commit 80717f5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
INST=inst
TMP=tmp
SRC=$(shell pwd -P)
DATE=$(shell date +%Y-%m-%d)

all: $(INST)/modules/texts/ztext/HebDelitzsch/nt.bzs $(INST)/modules/texts/ztext/HebDelitzschNN/nt.bzs
chmod -R g+rX,o+rX $(INST)
Expand All @@ -16,13 +17,20 @@ $(TMP)/basenn.osis: base.osis
stuff/remove-nikkud.py base.osis "$(TMP)"/basenn.osis

zip: all osis-and-conf-zip
zip -r HebDelitzsch-src-$(shell date +%Y-%m-%d).zip *.conf *.osis Makefile stuff TODO
cd $(INST); zip -r $(SRC)/HebDelitzsch-modules-$(shell date +%Y-%m-%d).zip .; cd ..
zip -r HebDelitzsch-src-$(DATE).zip *.conf *.osis Makefile stuff TODO
for base in HebDelitzsch HebDelitzschNN; do \
cd "$(INST)"; \
zip -r \
$(SRC)/$${base}-module-$(DATE).zip \
mods.d/$${base}.conf \
modules/texts/ztext/$${base}; \
cd ..; \
done

osis-and-conf-zip: all
mkdir -p "$(TMP)/osis-and-conf"
cp -p "$(INST)/mods.d/"*.conf "$(TMP)"/HebDelitzsch*.osis "$(TMP)/osis-and-conf"
cd "$(TMP)/osis-and-conf"; zip -r $(SRC)/HebDelitzsch-osis-and-conf-$(shell date +%Y-%m-%d).zip .

clean:
rm -rf $(INST) $(TMP) *.zip
rm -rf $(INST) $(TMP) ./*.zip

0 comments on commit 80717f5

Please sign in to comment.