Skip to content

Commit f8923bd

Browse files
committed
Remove unnecessary targets now that hex.pm exists
1 parent a963e67 commit f8923bd

File tree

2 files changed

+0
-288
lines changed

2 files changed

+0
-288
lines changed

deps/amqp10_client/Makefile

Lines changed: 0 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -81,147 +81,3 @@ test/system_SUITE_data/apache-activemq-$(ACTIVEMQ_VERSION)-bin.tar.gz:
8181
tests:: $(ACTIVEMQ)
8282

8383
ct ct-system: $(ACTIVEMQ)
84-
85-
# --------------------------------------------------------------------
86-
# Distribution.
87-
# --------------------------------------------------------------------
88-
89-
.PHONY: distribution
90-
91-
distribution: docs source-dist package
92-
93-
docs:: edoc
94-
edoc: doc/overview.edoc
95-
96-
doc/overview.edoc: src/overview.edoc.in
97-
mkdir -p doc
98-
sed -e 's:%%VERSION%%:$(PROJECT_VERSION):g' < $< > $@
99-
100-
.PHONY: source-dist clean-source-dist
101-
102-
SOURCE_DIST_BASE ?= $(PROJECT)
103-
SOURCE_DIST_SUFFIXES ?= tar.xz zip
104-
SOURCE_DIST ?= $(PACKAGES_DIR)/$(SOURCE_DIST_BASE)-$(PROJECT_VERSION)-src
105-
106-
# The first source distribution file is used by packages: if the archive
107-
# type changes, you must update all packages' Makefile.
108-
SOURCE_DIST_FILES = $(addprefix $(SOURCE_DIST).,$(SOURCE_DIST_SUFFIXES))
109-
110-
.PHONY: $(SOURCE_DIST_FILES)
111-
112-
source-dist: $(SOURCE_DIST_FILES)
113-
@:
114-
115-
RSYNC ?= rsync
116-
RSYNC_V_0 =
117-
RSYNC_V_1 = -v
118-
RSYNC_V_2 = -v
119-
RSYNC_V = $(RSYNC_V_$(V))
120-
RSYNC_FLAGS += -a $(RSYNC_V) \
121-
--exclude '.sw?' --exclude '.*.sw?' \
122-
--exclude '*.beam' \
123-
--exclude '*.d' \
124-
--exclude '*.pyc' \
125-
--exclude '.git*' \
126-
--exclude '.hg*' \
127-
--exclude '.travis.yml' \
128-
--exclude '.*.plt' \
129-
--exclude '$(notdir $(ERLANG_MK_TMP))' \
130-
--exclude 'cover/' \
131-
--exclude 'deps/' \
132-
--exclude 'ebin/' \
133-
--exclude 'erl_crash.dump' \
134-
--exclude '$(notdir $(DEPS_DIR))/' \
135-
--exclude 'doc/' \
136-
--exclude 'hexer*' \
137-
--exclude 'logs/' \
138-
--exclude 'plugins/' \
139-
--exclude '$(notdir $(DIST_DIR))/' \
140-
--exclude 'test' \
141-
--exclude 'xrefr' \
142-
--exclude '/$(notdir $(PACKAGES_DIR))/' \
143-
--exclude '/PACKAGES/' \
144-
--delete \
145-
--delete-excluded
146-
147-
TAR ?= tar
148-
TAR_V_0 =
149-
TAR_V_1 = -v
150-
TAR_V_2 = -v
151-
TAR_V = $(TAR_V_$(V))
152-
153-
GZIP ?= gzip
154-
BZIP2 ?= bzip2
155-
XZ ?= xz
156-
157-
ZIP ?= zip
158-
ZIP_V_0 = -q
159-
ZIP_V_1 =
160-
ZIP_V_2 =
161-
ZIP_V = $(ZIP_V_$(V))
162-
163-
.PHONY: $(SOURCE_DIST)
164-
165-
$(SOURCE_DIST): $(ERLANG_MK_RECURSIVE_DEPS_LIST)
166-
$(verbose) mkdir -p $(dir $@)
167-
$(gen_verbose) $(RSYNC) $(RSYNC_FLAGS) ./ $@/
168-
$(verbose) echo "$(PROJECT_DESCRIPTION) $(PROJECT_VERSION)" > $@/git-revisions.txt
169-
$(verbose) echo "$(PROJECT) $$(git rev-parse HEAD) $$(git describe --tags --exact-match 2>/dev/null || git symbolic-ref -q --short HEAD)" >> $@/git-revisions.txt
170-
$(verbose) for dep in $$(cat $(ERLANG_MK_RECURSIVE_DEPS_LIST) | grep -v '/$(PROJECT)$$' | LC_COLLATE=C sort); do \
171-
$(RSYNC) $(RSYNC_FLAGS) \
172-
$$dep \
173-
$@/deps; \
174-
if test -f $@/deps/$$(basename $$dep)/erlang.mk && \
175-
test "$$(wc -l $@/deps/$$(basename $$dep)/erlang.mk | awk '{print $$1;}')" = "1" && \
176-
grep -qs -E "^[[:blank:]]*include[[:blank:]]+(erlang\.mk|.*/erlang\.mk)$$" $@/deps/$$(basename $$dep)/erlang.mk; then \
177-
echo "include ../../erlang.mk" > $@/deps/$$(basename $$dep)/erlang.mk; \
178-
fi; \
179-
sed -E -i.bak "s|^[[:blank:]]*include[[:blank:]]+\.\./.*erlang.mk$$|include ../../erlang.mk|" \
180-
$@/deps/$$(basename $$dep)/Makefile && \
181-
rm $@/deps/$$(basename $$dep)/Makefile.bak; \
182-
(cd $$dep; echo "$$(basename "$$dep") $$(git rev-parse HEAD) $$(git describe --tags --exact-match 2>/dev/null || git symbolic-ref -q --short HEAD)") >> $@/git-revisions.txt; \
183-
done
184-
$(verbose) for file in $$(find $@ -name '*.app.src'); do \
185-
sed -E -i.bak \
186-
-e 's/[{]vsn[[:blank:]]*,[[:blank:]]*(""|"0.0.0")[[:blank:]]*}/{vsn, "$(PROJECT_VERSION)"}/' \
187-
$$file; \
188-
rm $$file.bak; \
189-
done
190-
$(verbose) rm $@/README.in
191-
$(verbose) cp README.in $@/README
192-
$(verbose) if test "$(BUILD_DOC)"; then cat "$(BUILD_DOC)" >> $@/README; fi
193-
194-
# TODO: Fix file timestamps to have reproducible source archives.
195-
# $(verbose) find $@ -not -name 'git-revisions.txt' -print0 | xargs -0 touch -r $@/git-revisions.txt
196-
197-
$(SOURCE_DIST).tar.gz: $(SOURCE_DIST)
198-
$(gen_verbose) cd $(dir $(SOURCE_DIST)) && \
199-
find $(notdir $(SOURCE_DIST)) -print0 | LC_COLLATE=C sort -z | \
200-
xargs -0 $(TAR) $(TAR_V) --no-recursion -cf - | \
201-
$(GZIP) --best > $@
202-
203-
$(SOURCE_DIST).tar.bz2: $(SOURCE_DIST)
204-
$(gen_verbose) cd $(dir $(SOURCE_DIST)) && \
205-
find $(notdir $(SOURCE_DIST)) -print0 | LC_COLLATE=C sort -z | \
206-
xargs -0 $(TAR) $(TAR_V) --no-recursion -cf - | \
207-
$(BZIP2) > $@
208-
209-
$(SOURCE_DIST).tar.xz: $(SOURCE_DIST)
210-
$(gen_verbose) cd $(dir $(SOURCE_DIST)) && \
211-
find $(notdir $(SOURCE_DIST)) -print0 | LC_COLLATE=C sort -z | \
212-
xargs -0 $(TAR) $(TAR_V) --no-recursion -cf - | \
213-
$(XZ) > $@
214-
215-
$(SOURCE_DIST).zip: $(SOURCE_DIST)
216-
$(verbose) rm -f $@
217-
$(gen_verbose) cd $(dir $(SOURCE_DIST)) && \
218-
find $(notdir $(SOURCE_DIST)) -print0 | LC_COLLATE=C sort -z | \
219-
xargs -0 $(ZIP) $(ZIP_V) $@
220-
221-
clean:: clean-source-dist
222-
223-
clean-source-dist:
224-
$(gen_verbose) rm -rf -- $(SOURCE_DIST_BASE)-*
225-
226-
package: dist
227-
cp $(DIST_DIR)/*.ez $(PACKAGES_DIR)

deps/amqp_client/Makefile

Lines changed: 0 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -52,147 +52,3 @@ WITHOUT = plugins/proper
5252

5353
include ../../rabbitmq-components.mk
5454
include ../../erlang.mk
55-
56-
# --------------------------------------------------------------------
57-
# Distribution.
58-
# --------------------------------------------------------------------
59-
60-
.PHONY: distribution
61-
62-
distribution: docs source-dist package
63-
64-
docs:: edoc
65-
edoc: doc/overview.edoc
66-
67-
doc/overview.edoc: src/overview.edoc.in
68-
mkdir -p doc
69-
sed -e 's:%%VERSION%%:$(PROJECT_VERSION):g' < $< > $@
70-
71-
.PHONY: source-dist clean-source-dist
72-
73-
SOURCE_DIST_BASE ?= $(PROJECT)
74-
SOURCE_DIST_SUFFIXES ?= tar.xz zip
75-
SOURCE_DIST ?= $(PACKAGES_DIR)/$(SOURCE_DIST_BASE)-$(PROJECT_VERSION)-src
76-
77-
# The first source distribution file is used by packages: if the archive
78-
# type changes, you must update all packages' Makefile.
79-
SOURCE_DIST_FILES = $(addprefix $(SOURCE_DIST).,$(SOURCE_DIST_SUFFIXES))
80-
81-
.PHONY: $(SOURCE_DIST_FILES)
82-
83-
source-dist: $(SOURCE_DIST_FILES)
84-
@:
85-
86-
RSYNC ?= rsync
87-
RSYNC_V_0 =
88-
RSYNC_V_1 = -v
89-
RSYNC_V_2 = -v
90-
RSYNC_V = $(RSYNC_V_$(V))
91-
RSYNC_FLAGS += -a $(RSYNC_V) \
92-
--exclude '.sw?' --exclude '.*.sw?' \
93-
--exclude '*.beam' \
94-
--exclude '*.d' \
95-
--exclude '*.pyc' \
96-
--exclude '.git*' \
97-
--exclude '.hg*' \
98-
--exclude '.travis.yml' \
99-
--exclude '.*.plt' \
100-
--exclude '$(notdir $(ERLANG_MK_TMP))' \
101-
--exclude 'cover/' \
102-
--exclude 'deps/' \
103-
--exclude 'ebin/' \
104-
--exclude 'erl_crash.dump' \
105-
--exclude '$(notdir $(DEPS_DIR))/' \
106-
--exclude 'doc/' \
107-
--exclude 'hexer*' \
108-
--exclude 'logs/' \
109-
--exclude 'plugins/' \
110-
--exclude '$(notdir $(DIST_DIR))/' \
111-
--exclude 'test' \
112-
--exclude 'xrefr' \
113-
--exclude '/$(notdir $(PACKAGES_DIR))/' \
114-
--exclude '/PACKAGES/' \
115-
--delete \
116-
--delete-excluded
117-
118-
TAR ?= tar
119-
TAR_V_0 =
120-
TAR_V_1 = -v
121-
TAR_V_2 = -v
122-
TAR_V = $(TAR_V_$(V))
123-
124-
GZIP ?= gzip
125-
BZIP2 ?= bzip2
126-
XZ ?= xz
127-
128-
ZIP ?= zip
129-
ZIP_V_0 = -q
130-
ZIP_V_1 =
131-
ZIP_V_2 =
132-
ZIP_V = $(ZIP_V_$(V))
133-
134-
.PHONY: $(SOURCE_DIST)
135-
136-
$(SOURCE_DIST): $(ERLANG_MK_RECURSIVE_DEPS_LIST)
137-
$(verbose) mkdir -p $(dir $@)
138-
$(gen_verbose) $(RSYNC) $(RSYNC_FLAGS) ./ $@/
139-
$(verbose) echo "$(PROJECT_DESCRIPTION) $(PROJECT_VERSION)" > $@/git-revisions.txt
140-
$(verbose) echo "$(PROJECT) $$(git rev-parse HEAD) $$(git describe --tags --exact-match 2>/dev/null || git symbolic-ref -q --short HEAD)" >> $@/git-revisions.txt
141-
$(verbose) for dep in $$(cat $(ERLANG_MK_RECURSIVE_DEPS_LIST) | grep -v '/$(PROJECT)$$' | LC_COLLATE=C sort); do \
142-
$(RSYNC) $(RSYNC_FLAGS) \
143-
$$dep \
144-
$@/deps; \
145-
if test -f $@/deps/$$(basename $$dep)/erlang.mk && \
146-
test "$$(wc -l $@/deps/$$(basename $$dep)/erlang.mk | awk '{print $$1;}')" = "1" && \
147-
grep -qs -E "^[[:blank:]]*include[[:blank:]]+(erlang\.mk|.*/erlang\.mk)$$" $@/deps/$$(basename $$dep)/erlang.mk; then \
148-
echo "include ../../erlang.mk" > $@/deps/$$(basename $$dep)/erlang.mk; \
149-
fi; \
150-
sed -E -i.bak "s|^[[:blank:]]*include[[:blank:]]+\.\./.*erlang.mk$$|include ../../erlang.mk|" \
151-
$@/deps/$$(basename $$dep)/Makefile && \
152-
rm $@/deps/$$(basename $$dep)/Makefile.bak; \
153-
(cd $$dep; echo "$$(basename "$$dep") $$(git rev-parse HEAD) $$(git describe --tags --exact-match 2>/dev/null || git symbolic-ref -q --short HEAD)") >> $@/git-revisions.txt; \
154-
done
155-
$(verbose) for file in $$(find $@ -name '*.app.src'); do \
156-
sed -E -i.bak \
157-
-e 's/[{]vsn[[:blank:]]*,[[:blank:]]*(""|"0.0.0")[[:blank:]]*}/{vsn, "$(PROJECT_VERSION)"}/' \
158-
$$file; \
159-
rm $$file.bak; \
160-
done
161-
$(verbose) rm $@/README.in
162-
$(verbose) cp README.in $@/README
163-
$(verbose) if test "$(BUILD_DOC)"; then cat "$(BUILD_DOC)" >> $@/README; fi
164-
165-
# TODO: Fix file timestamps to have reproducible source archives.
166-
# $(verbose) find $@ -not -name 'git-revisions.txt' -print0 | xargs -0 touch -r $@/git-revisions.txt
167-
168-
$(SOURCE_DIST).tar.gz: $(SOURCE_DIST)
169-
$(gen_verbose) cd $(dir $(SOURCE_DIST)) && \
170-
find $(notdir $(SOURCE_DIST)) -print0 | LC_COLLATE=C sort -z | \
171-
xargs -0 $(TAR) $(TAR_V) --no-recursion -cf - | \
172-
$(GZIP) --best > $@
173-
174-
$(SOURCE_DIST).tar.bz2: $(SOURCE_DIST)
175-
$(gen_verbose) cd $(dir $(SOURCE_DIST)) && \
176-
find $(notdir $(SOURCE_DIST)) -print0 | LC_COLLATE=C sort -z | \
177-
xargs -0 $(TAR) $(TAR_V) --no-recursion -cf - | \
178-
$(BZIP2) > $@
179-
180-
$(SOURCE_DIST).tar.xz: $(SOURCE_DIST)
181-
$(gen_verbose) cd $(dir $(SOURCE_DIST)) && \
182-
find $(notdir $(SOURCE_DIST)) -print0 | LC_COLLATE=C sort -z | \
183-
xargs -0 $(TAR) $(TAR_V) --no-recursion -cf - | \
184-
$(XZ) > $@
185-
186-
$(SOURCE_DIST).zip: $(SOURCE_DIST)
187-
$(verbose) rm -f $@
188-
$(gen_verbose) cd $(dir $(SOURCE_DIST)) && \
189-
find $(notdir $(SOURCE_DIST)) -print0 | LC_COLLATE=C sort -z | \
190-
xargs -0 $(ZIP) $(ZIP_V) $@
191-
192-
clean:: clean-source-dist
193-
194-
clean-source-dist:
195-
$(gen_verbose) rm -rf -- $(SOURCE_DIST_BASE)-*
196-
197-
package: dist
198-
cp $(DIST_DIR)/*.ez $(PACKAGES_DIR)

0 commit comments

Comments
 (0)