Skip to content

Commit

Permalink
makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
danihek committed Nov 30, 2024
1 parent 1554c22 commit b9a0806
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
VERSION=0.0.5
CFLAGS = -Wall -Wextra -lm -O3

hellwal: hellwal.c
Expand All @@ -10,17 +9,18 @@ debug: hellwal.c
clean:
rm hellwal

pkg: hellwal
mkdir -p hellwal-$(VERSION)
cp -R LICENSE Makefile README.md hellwal.c hellwal-$(VERSION)
tar -caf hellwal-$(VERSION).tar.gz hellwal-$(VERSION)
rm -rf hellwal-$(VERSION)

install: hellwal
mkdir -p /usr/local/bin
cp -f hellwal /usr/local/bin
chmod 755 /usr/local/bin/hellwal # chmod u=rwx,g=rx,o=rx

uninstall:
rm -f usr/local/bin/hellwal
rm -f /usr/local/bin/hellwal

release: hellwal
mkdir -p release
cp hellwal release/
tar czf release/hellwal-v$(VERSION).tar.gz -C release hellwal
rm -rf release

.PHONY: hellwal
.PHONY: hellwal release clean install uninstall
Binary file added hellwal
Binary file not shown.
Binary file added laptop
Binary file not shown.

0 comments on commit b9a0806

Please sign in to comment.