Skip to content

Commit

Permalink
Improve Makefile.
Browse files Browse the repository at this point in the history
- make LANGUAGE a simpler variable instead of the complete file path
- add more warnings
- add clean target
  • Loading branch information
ericonr committed Jul 17, 2021
1 parent d5a3749 commit b3d101f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
LANGUAGE = po/strings_pt.c
CFLAGS = -g -Og -pipe -Ipo/ -D_GNU_SOURCE
LANGUAGE = pt
CFLAGS = -Wall -Wextra -Wno-parentheses -g -Og -pipe -Ipo/ -D_GNU_SOURCE

# default to static to run on glibc and musl
STATIC = -static
Expand All @@ -13,7 +13,10 @@ bindir = $(PREFIX)/bin

all: ep

ep: ep.c out.c path.c git.c lang.c ssh.c $(LANGUAGE)
ep: ep.c out.c path.c git.c lang.c ssh.c po/strings_$(LANGUAGE).c

install: ep
install -m755 $< $(bindir)/ep

clean:
rm -f ep

0 comments on commit b3d101f

Please sign in to comment.