Changeset 866b391 for Makefile.am
- Timestamp:
- Mar 8, 2016, 1:05:52 AM (9 years ago)
- Branches:
- master, release-1.10
- Children:
- bc308eb
- Parents:
- 02514d9
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/11/13 16:02:42)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (03/08/16 01:05:52)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile.am
r02514d9 r866b391 2 2 3 3 GIT_DESCRIPTION := $(if $(wildcard $(srcdir)/.git),$(shell cd $(srcdir) && git describe --match='barnowl-*' HEAD 2>/dev/null)) 4 VERSION = $(if $(GIT_DESCRIPTION),$(GIT_DESCRIPTION:barnowl-%=%),@VERSION@) 5 -include BUILD_VERSION.mk 4 VERSION = $(if $(GIT_DESCRIPTION),$(GIT_DESCRIPTION:barnowl-%=%),$(DIST_VERSION)) 5 DIST_VERSION = @VERSION@ 6 -include $(srcdir)/DIST_VERSION.mk BUILD_VERSION.mk 6 7 7 8 FORCE: 8 9 BUILD_VERSION.mk: $(if $(filter-out $(BUILD_VERSION),$(VERSION)),FORCE) 9 10 echo 'BUILD_VERSION = $(VERSION)' > $@ 11 dist-hook:: $(if $(filter-out @VERSION@,$(VERSION)),dist-hook-version) 12 dist-hook-version: 13 echo 'DIST_VERSION = $(VERSION)' > $(distdir)/DIST_VERSION.mk 10 14 11 15 bin_PROGRAMS = bin/barnowl … … 105 109 106 110 CLEANFILES = $(BUILT_SOURCES) $(GEN_C) $(noinst_SCRIPTS) $(check_SCRIPTS) BUILD_VERSION.mk 111 MAINTAINERCLEANFILES = DIST_VERSION.mk 107 112 EXTRA_DIST = \ 108 113 autogen.sh \
Note: See TracChangeset
for help on using the changeset viewer.