2016-10-25 07:01:31 -05:00
|
|
|
include $(top_srcdir)/Makefile.python.am
|
2016-11-22 10:00:04 -06:00
|
|
|
|
2017-03-09 02:54:10 -06:00
|
|
|
MOSTLYCLEANFILES = .DEFAULT_PLUGINS
|
|
|
|
|
2016-11-22 10:00:04 -06:00
|
|
|
EXTRA_DIST = version.py.in
|
|
|
|
|
|
|
|
all-local: version.py
|
|
|
|
dist-hook: version.py
|
2017-01-12 05:10:37 -06:00
|
|
|
install-exec-local: version.py
|
|
|
|
bdist_wheel: version.py
|
2016-11-22 10:00:04 -06:00
|
|
|
|
2017-03-09 02:54:10 -06:00
|
|
|
.DEFAULT_PLUGINS: $(top_srcdir)/API.txt
|
|
|
|
$(AM_V_GEN)awk '$$1 == "default:" { print $$2 }' $< >$@
|
|
|
|
|
|
|
|
version.py: version.py.in .DEFAULT_PLUGINS $(top_builddir)/$(CONFIG_STATUS)
|
2016-11-22 10:00:04 -06:00
|
|
|
$(AM_V_GEN)sed \
|
|
|
|
-e 's|@API_VERSION[@]|$(API_VERSION)|g' \
|
|
|
|
-e 's|@NUM_VERSION[@]|$(NUM_VERSION)|g' \
|
|
|
|
-e 's|@VERSION[@]|$(VERSION)|g' \
|
|
|
|
-e 's|@VENDOR_SUFFIX[@]|$(VENDOR_SUFFIX)|g' \
|
2017-03-09 02:54:10 -06:00
|
|
|
-e '/@DEFAULT_PLUGINS[@]/r .DEFAULT_PLUGINS' \
|
|
|
|
-e '/@DEFAULT_PLUGINS[@]/d' \
|
2016-11-22 10:00:04 -06:00
|
|
|
$< > $@
|