Skip to content

Commit ac761bb

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

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

makefile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
VER=1.0
1+
VER="`git tag | tr -d 'v'`"
2+
MAKEFILELIST="makefile pkgs/debian/makefile"
23
TARBALL-LOCATION:=pkgs/tarball
34
PKGNAME:=unix-notes-$(VER)
45
TARBALL=$(PKGNAME)-tar
56
GZTARBALL=$(TARBALL).gz
67
SHATXT=$(PKGNAME)-sha256.txt
78

8-
## make help: Display help text
9+
## make help Display help text
910
help:
1011
@echo ""
1112
@echo "Standard(?) Unix Notes"
@@ -14,16 +15,16 @@ help:
1415
@echo ""
1516
@sed -n s/^##//p makefile
1617

17-
## make var: Show makefile variables
18+
## make var Show makefile variables
1819
var:
19-
@echo Version = $(VER)
20+
@echo Latest Git tag (Version) = $(VER)
2021
@echo Tarball Location = $(TARBALL-LOCATION)
2122
@echo Package Name = $(PKGNAME)
2223
@echo Tarball Name = $(TARBALL)
2324
@echo Gzipped Tarball = $(GZTARBALL)
2425
@echo SHA text file = $(SHATXT)
2526

26-
## make install: Install the Unix Notes application
27+
## make install Install the Unix Notes application
2728
install: manpages install_files
2829

2930
install_files:
@@ -43,19 +44,19 @@ clean:
4344
-rm tmp/notes.1.gz
4445
-rm tmp/notebook.1.gz
4546

46-
## make uninstall: Uninstall the application
47+
## make uninstall Uninstall the application
4748
uninstall:
4849
@echo uninstall application
4950
-sudo rm -f /usr/share/man/man1/notes.1.gz
5051
-sudo rm -f /usr/share/man/man1/notebook.1.gz
5152
-sudo rm -f /usr/local/bin/notes
5253
-sudo rm -f /usr/local/bin/notebook
5354

54-
## make reinstall: Reinstall the application
55+
## make reinstall Reinstall the application
5556
reinstall: uninstall install
5657
@echo reinstall application
5758

58-
## make tarball: Package up into tarball
59+
## make tarball Package up into tarball
5960
tarball:
6061
git archive v$(VER) -o $(TARBALL)
6162
gzip $(TARBALL)

pkgs/debian/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
PROGNAME=unix-notes
3-
VER=1.0
3+
VER="`git tag | tr -d 'v'`"
44
ARCH=all
55
PKGBUILDDIR=$(PROGNAME)_$(VER)_$(ARCH)
66
BINDIR=usr/local/bin

0 commit comments

Comments
 (0)