We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b648e4 commit 0dc7e49Copy full SHA for 0dc7e49
Makefile
@@ -15,6 +15,19 @@ install:
15
echo "...done"; \
16
fi
17
18
+debian: program # Run as $ make debian VERSION=0.x.y
19
+ @echo "Building debian package for version=${VERSION}"
20
+ @mkdir -p debian/varuh-${VERSION}_amd64/usr/bin/
21
+ @mkdir -p debian/varuh-${VERSION}_amd64/DEBIAN/
22
+ @cp varuh debian/varuh-${VERSION}_amd64/usr/bin/
23
+ @sed 's/VERSION/${VERSION}/g' META > debian/varuh-${VERSION}_amd64/DEBIAN/control
24
+ @cd debian/ && dpkg-deb --build --root-owner-group varuh-${VERSION}_amd64/ && cd -
25
+ @if [ -f debian/varuh-${VERSION}_amd64.deb ]; then \
26
+ echo "Build successful."; \
27
+ else \
28
+ echo "Build failed."; \
29
+ fi \
30
+
31
clean:
32
@echo "Removing ${PROGRAM}"
33
@rm -f ${PROGRAM}
0 commit comments