Skip to content

Commit 851a30f

Browse files
Introduce 'dist' make target to generate tarball ready to build
With this tarball, it should be possible to build and install the source using "cd src; ./configure ; make; make install".
1 parent ff41ce5 commit 851a30f

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)