Skip to content

Commit 93bed70

Browse files
authored
Merge pull request #1831 from petterreinholdtsen/make-dist-target
Introduce 'dist' make target to generate tarball ready to build
2 parents 064e963 + 851a30f commit 93bed70

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ else
122122
endif
123123
endif
124124

125+
VERSION=$(shell cat ../VERSION)
126+
dist:
127+
mkdir ../linuxcnc-$(VERSION)
128+
(cd ../ && git archive master) | (cd ../linuxcnc-$(VERSION) && tar xf -)
129+
(cd ../linuxcnc-$(VERSION) && ./debian/configure)
130+
(cd ../linuxcnc-$(VERSION)/src && ./autogen.sh)
131+
(cd .. && tar zcf linuxcnc-$(VERSION).tar.gz linuxcnc-$(VERSION))
132+
rm -rf ../linuxcnc-$(VERSION)
125133

126134
# Print 'entering' all the time
127135
MAKEFLAGS += w

0 commit comments

Comments
 (0)