Unihistext / Makefile

all::

TMPVERSIONFILE := $(shell echo /tmp/.tmpverfile-`whoami`)

all:: update_version


ADDDEPS := src/make-wrapper.sh src/gzip-wrapper.sh src/version.py src/helpers.py

build/unihistext: src/unihistext src/unihist.py $(ADDDEPS)
all:: build/unihistext
build/uninormalize: src/uninormalize src/uninormalize.py $(ADDDEPS)
all:: build/uninormalize

build/uninormalize build/unihistext:
	mkdir -p `dirname $@`
	#{ cd src && ./make-wrapper.sh unihistext ; } > $@
	./src/make-wrapper.sh $^ > $@
	chmod +x $@

update_version: $(TMPVERSIONFILE)
	cmp $(TMPVERSIONFILE) src/version.py -s || mv $(TMPVERSIONFILE) src/version.py
.PHONY: $(TMPVERSIONFILE)

$(TMPVERSIONFILE) src/version.py:
	{ echo "version = \"unknown\""; cd src && ./version-gen.sh | sed -e "s/^.*\$$/version = \"&\"/"; } > $@
#.PHONY: src/version.py

clean:
	rm -rf build $(shell find -name '*~' -o -name '*.pyc' -o -name '*.pyo' | grep -v .git ) src/version.py $(TMPVERSIONFILE)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.