<commit_before>all: debian zipfile
.PHONY: all

VERSION := 1.0.0

SRC_DIR := src
INSTALL_DIR := installer
BUILD_DIR := build

ZIP_DIR := suns
ZIP_FILE := suns.zip

PLUGIN_INIT   := $(SRC_DIR)/__init__.py
PLUGIN_MOTIFS := $(SRC_DIR)/suns_aa_motifs.py
PLUGIN_PATH   := usr/lib/python2.7/dist-packages/pmg_tk/startup/suns

DEB_DIR := debian
DEB_BUILD_DIR := $(DEB_DIR)/build
DEB_NAME := pymol-suns-search
DEB_VERSION := 1
DEB_FULL := $(DEB_NAME)_$(VERSION)-$(DEB_VERSION)_all.deb
DOC_PATH := usr/share/doc/$(DEB_NAME)

debian: $(BUILD_DIR)/$(DEB_FULL)
.PHONY: debian

$(BUILD_DIR)/$(DEB_FULL): \
    $(DEB_DIR)/control \
    $(PLUGIN_INIT) \
    $(PLUGIN_MOTIFS)
        mkdir -p $(BUILD_DIR) \
         $(DEB_BUILD_DIR)/DEBIAN \
         $(DEB_BUILD_DIR)/$(PLUGIN_PATH) \
         $(DEB_BUILD_DIR)/$(DOC_PATH)
        cp $(PLUGIN_INIT) $(DEB_BUILD_DIR)/$(PLUGIN_PATH)
        cp $(PLUGIN_INIT) $(DEB_BUILD_DIR)/$(PLUGIN_PATH)
        cp $(DEB_DIR)/copyright $(DEB_BUILD_DIR)/$(DOC_PATH)/copyright
        cp $(DEB_DIR)/control $(DEB_BUILD_DIR)/DEBIAN/control
        gzip -9 -c $(DEB_DIR)/changelog > $(BUILD_DIR)/changelog.gz
        chmod 644 $(BUILD_DIR)/changelog.gz
        cp $(BUILD_DIR)/changelog.gz $(DEB_BUILD_DIR)/$(DOC_PATH)
        rm $(BUILD_DIR)/changelog.gz
        ln -fs $(DOC_PATH)/changelog.gz \
              $(DEB_BUILD_DIR)/$(DOC_PATH)/changelog.Debian.gz
        find $(DEB_BUILD_DIR) -type d | xargs chmod 755
        fakeroot dpkg-deb --build $(DEB_BUILD_DIR) $(BUILD_DIR)/$(DEB_FULL)

zipfile: $(INSTALL_DIR)/$(ZIP_FILE)
.PHONY: zipfile

$(INSTALL_DIR)/$(ZIP_FILE): $(SRC_DIR)/__init__.py $(SRC_DIR)/pika
	ln -s src suns
	zip -r $(INSTALL_DIR)/$(ZIP_FILE) suns
	rm suns
<commit_msg>Changed Makefile to use tabs<commit_after>all: debian zipfile
.PHONY: all

VERSION := 1.0.0

SRC_DIR := src
INSTALL_DIR := installer
BUILD_DIR := build

ZIP_DIR := suns
ZIP_FILE := suns.zip

PLUGIN_INIT   := $(SRC_DIR)/__init__.py
PLUGIN_MOTIFS := $(SRC_DIR)/suns_aa_motifs.py
PLUGIN_PATH   := usr/lib/python2.7/dist-packages/pmg_tk/startup/suns

DEB_DIR := debian
DEB_BUILD_DIR := $(DEB_DIR)/build
DEB_NAME := pymol-suns-search
DEB_VERSION := 1
DEB_FULL := $(DEB_NAME)_$(VERSION)-$(DEB_VERSION)_all.deb
DOC_PATH := usr/share/doc/$(DEB_NAME)

debian: $(BUILD_DIR)/$(DEB_FULL)
.PHONY: debian

$(BUILD_DIR)/$(DEB_FULL): \
    $(DEB_DIR)/control \
    $(PLUGIN_INIT) \
    $(PLUGIN_MOTIFS)
	mkdir -p $(BUILD_DIR) \
	 $(DEB_BUILD_DIR)/DEBIAN \
	 $(DEB_BUILD_DIR)/$(PLUGIN_PATH) \
	 $(DEB_BUILD_DIR)/$(DOC_PATH)
	cp $(PLUGIN_INIT) $(DEB_BUILD_DIR)/$(PLUGIN_PATH)
	cp $(PLUGIN_INIT) $(DEB_BUILD_DIR)/$(PLUGIN_PATH)
	cp $(DEB_DIR)/copyright $(DEB_BUILD_DIR)/$(DOC_PATH)/copyright
	cp $(DEB_DIR)/control $(DEB_BUILD_DIR)/DEBIAN/control
	gzip -9 -c $(DEB_DIR)/changelog > $(BUILD_DIR)/changelog.gz
	chmod 644 $(BUILD_DIR)/changelog.gz
	cp $(BUILD_DIR)/changelog.gz $(DEB_BUILD_DIR)/$(DOC_PATH)
	rm $(BUILD_DIR)/changelog.gz
	ln -fs $(DOC_PATH)/changelog.gz \
	      $(DEB_BUILD_DIR)/$(DOC_PATH)/changelog.Debian.gz
	find $(DEB_BUILD_DIR) -type d | xargs chmod 755
	fakeroot dpkg-deb --build $(DEB_BUILD_DIR) $(BUILD_DIR)/$(DEB_FULL)

zipfile: $(INSTALL_DIR)/$(ZIP_FILE)
.PHONY: zipfile

$(INSTALL_DIR)/$(ZIP_FILE): $(SRC_DIR)/__init__.py $(SRC_DIR)/pika
	ln -s src suns
	zip -r $(INSTALL_DIR)/$(ZIP_FILE) suns
	rm suns

{'fraction_non_alphanumeric': 0.17003316249623154, 'fraction_numerical': 0.007838408200180886, 'mean_word_length': 4.144186046511628, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3881029', 'n_tokens_mistral': 1475, 'n_tokens_neox': 1418, 'n_words': 218}