Commit df75816c0858263eab97bae6bd57c23e28b62cf5
1 parent
c32627ac
Exists in
master
and in
3 other branches
create a dist tarball
Showing
2 changed files
with
21 additions
and
1 deletions
Show diff stats
... | ... | @@ -0,0 +1 @@ |
1 | +/dist | ... | ... |
Makefile
1 | +VERSION = 1 | |
1 | 2 | PREFIX = /usr |
2 | 3 | TARGET = $(DESTDIR)$(PREFIX)/src/colab/dependencies |
3 | 4 | |
4 | 5 | all clean: |
5 | 6 | @echo Nothing to $@ |
6 | 7 | |
8 | +SOURCES = *.tar.* *.zip | |
9 | + | |
7 | 10 | install: |
8 | 11 | install -d -m 0755 $(TARGET) |
9 | - install -m 0644 *.tar.* *.zip $(TARGET) | |
12 | + install -m 0644 $(SOURCES) $(TARGET) | |
13 | + | |
14 | +DISTDIR = colab-deps-src-$(VERSION) | |
15 | +TARBALL = dist/$(DISTDIR).tar.gz | |
16 | + | |
17 | +sdist: $(TARBALL) | |
18 | + | |
19 | +$(TARBALL): | |
20 | + mkdir -p $$(dirname $(TARBALL)) | |
21 | + $(RM) $(TARBALL) | |
22 | + mkdir $(DISTDIR) | |
23 | + ln Makefile $(SOURCES) $(DISTDIR) | |
24 | + tar caf $(TARBALL) $(DISTDIR) | |
25 | + $(RM) -r $(DISTDIR) | |
26 | + | |
27 | +distclean: | |
28 | + $(RM) -r $$(dirname $(TARBALL)) | ... | ... |