summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2014-06-15 16:22:54 +0200
committerPeter Hofmann <scm@uninformativ.de>2014-06-15 16:29:38 +0200
commit1adcab7950aff5dee143fc2472935cc985895cff (patch)
tree25cbf855a835e70a7bf9b856346f3925c5590178 /Makefile
parentda89f4935ec7111579bd1f063f388784162b320a (diff)
downloadlariza-1adcab7950aff5dee143fc2472935cc985895cff.tar.gz
Don't fiddle with __NAME__ at runtime
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 465a93c..bdace38 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,13 @@
CFLAGS += -Wall -Wextra -O3
__NAME__ = lariza
+__NAME_UPPERCASE__ = `echo $(__NAME__) | sed 's/.*/\U&/'`
+__NAME_CAPITALIZED__ = `echo $(__NAME__) | sed 's/^./\U&\E/'`
$(__NAME__): browser.c
$(CC) $(CFLAGS) $(LDFLAGS) \
-D__NAME__=\"$(__NAME__)\" \
+ -D__NAME_UPPERCASE__=\"$(__NAME_UPPERCASE__)\" \
+ -D__NAME_CAPITALIZED__=\"$(__NAME_CAPITALIZED__)\" \
-o $@ $< \
`pkg-config --cflags --libs gtk+-2.0 glib-2.0 webkit-1.0`