mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00:00
Add dist target, build timestamp and version information
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
37144d58b2
commit
8ad87be029
3 files changed
+14
-4
No files matched your search
@@ -1,9 +1,10 @@
|
||||
CC = gcc
|
||||
CFLAGS = -Os -Wall
|
||||
CFLAGS = -Os -Wall -DVERSION=\"$(VERSION)\" -DWHOAMI=\"`whoami`@`hostname`\"
|
||||
LD = gcc
|
||||
LDFLAGS =
|
||||
LIBS =
|
||||
|
||||
VERSION = 0.1
|
||||
PKG = finit-$(VERSION)
|
||||
|
||||
#### Configurable parameters
|
||||
|
||||
@@ -43,3 +44,11 @@ clean:
|
||||
finit.o: finit.c Makefile
|
||||
|
||||
finit-mod.o: finit-mod.c Makefile
|
||||
|
||||
dist:
|
||||
rm -Rf $(PKG)
|
||||
mkdir $(PKG)
|
||||
cp Makefile README finit.c finit-mod.c finit-alt.c $(PKG)
|
||||
tar cf - $(PKG) | gzip -c > $(PKG).tar.gz
|
||||
rm -Rf $(PKG)
|
||||
ls -l $(PKG).tar.gz
|
||||
Reference in new issue
Block a user