Skip to content

Commit 711187f

Browse files
committed
makefile now run git tag to figure out which version they are building
1 parent ac761bb commit 711187f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ help:
1313
@echo ""
1414
@echo "GPG encrypted Notes system"
1515
@echo ""
16+
@echo Make now runs 'git tag' to work out the version for the tarball
17+
@echo ""
1618
@sed -n s/^##//p makefile
1719

1820
## make var Show makefile variables

pkgs/debian/makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,17 @@ DEBIAN=$(PKGBUILDDIR)/DEBIAN
1212

1313
## make help: Show help
1414
help:
15+
@echo ""
16+
@echo Debian .deb packager makefile
17+
@echo ""
18+
@echo Please ensure that you have tagged the Git repo with the version
19+
@echo BEFORE you run 'make deb'
20+
@echo ""
1521
@sed -n s/^##//p makefile
1622

1723
var:
1824
@echo PROGNAME = $(PROGNAME)
19-
@echo VER = $(VER)
25+
@echo Git Tag (VER) = $(VER)
2026
@echo ARCH = $(ARCH)
2127
@echo PKGBUILDIR = $(PKGBUILDDIR)
2228
@echo BINDIR = $(BINDIR)
@@ -44,7 +50,7 @@ prep: clean
4450
install control $(DEBIAN)
4551
cd $(PKGBINDIR); ln -sf notes notebook
4652

47-
## make build: Build .DEB package
53+
## make build: Build .DEB package (VERSION calculated from GIT TAG)
4854
build: prep
4955
@echo building Debian package
5056
dpkg-deb --build $(PKGBUILDDIR)

0 commit comments

Comments
 (0)