diff --git a/Makefile b/Makefile index 122d26c..96fd6e5 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -LANGUAGE = PORTUGUESE -CFLAGS = -g -Og -pipe -Ipo/ -D$(LANGUAGE) +LANGUAGE = po/strings_pt.c +CFLAGS = -g -Og -pipe -Ipo/ -D_GNU_SOURCE # defaults to cproc because "why not?" CC = cproc @@ -9,7 +9,7 @@ bindir = $(PREFIX)/bin all: ep -ep: ep.c out.c path.c git.c +ep: ep.c out.c path.c git.c $(LANGUAGE) install: ep install -m755 $< $(bindir)/ep diff --git a/po/info_strings.h b/po/info_strings.h index 794a69c..19775f1 100644 --- a/po/info_strings.h +++ b/po/info_strings.h @@ -1,7 +1 @@ -#if defined(PORTUGUESE) -# include "strings_pt.h" -#elif defined(ENGLISH) -# include "strings_en.h" -#else -# error "No language selected!" -#endif +extern const char *unknowndir; diff --git a/po/strings_en.c b/po/strings_en.c new file mode 100644 index 0000000..dc40a2b --- /dev/null +++ b/po/strings_en.c @@ -0,0 +1 @@ +const char *unknowndir = "[unknown]"; diff --git a/po/strings_en.h b/po/strings_en.h deleted file mode 100644 index b189a00..0000000 --- a/po/strings_en.h +++ /dev/null @@ -1 +0,0 @@ -static const char *unknowndir = "[unknown]"; diff --git a/po/strings_pt.c b/po/strings_pt.c new file mode 100644 index 0000000..d8199a2 --- /dev/null +++ b/po/strings_pt.c @@ -0,0 +1 @@ +const char *unknowndir = "[desconhecido]"; diff --git a/po/strings_pt.h b/po/strings_pt.h deleted file mode 100644 index b3fc4ae..0000000 --- a/po/strings_pt.h +++ /dev/null @@ -1 +0,0 @@ -static const char *unknowndir = "[desconhecido]";