SRC_ZIP_PATH=pristine-private/nasb/historical/nasb.zip #SRC_ZIP_PATH=pristine-private/nasb/nasb_1995_full_06-15-21.zip MODNAME=NASB REPO=lockman SRCNAME=nasb.txt NOTESNAME="nasb cross refs.txt" all: $(MODNAME).zip $(MODNAME).zip: modules/texts/ztext/nasb/ot.bzv zip -r $(MODNAME).zip mods.d modules modules/texts/ztext/nasb/ot.bzv: nasb.osis.xml mkdir -p modules/texts/ztext/nasb osis2mod modules/texts/ztext/nasb/ nasb.osis.xml -z z -b 4 chmod a+r modules/texts/ztext/nasb/* nasb.osis.xml: src.txt lockosis ./lockosis src.txt notes.txt > nasb.osis.xml src.txt: src.zip mkdir -p tmp cd tmp && unzip ../src.zip cd tmp && mv $(SRCNAME) ../src.txt cd tmp && mv $(NOTESNAME) ../notes.txt src.zip: scp host.crosswire.org:~swordmod/${SRC_ZIP_PATH} src.zip deploy: $(MODNAME).zip scp $(MODNAME).zip host.crosswire.org:/home/ftp/pub/sword/$(REPO)/ clean: rm -rf nasb.osis.xml *.o lockosis modules $(MODNAME).zip notes.txt src.txt tmp distclean: clean rm -rf src.zip .cpp: g++ -O0 -g -DHAVESWORD -Wall -Werror `pkg-config --cflags sword` $< -o $@ `pkg-config --libs sword`