Skip to content

Commit

Permalink
Updated to latest svn checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
darktjm committed Sep 8, 2016
2 parents ec70cdb + e0aebc7 commit 8f8de92
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions cs-glib.nw
Original file line number Diff line number Diff line change
Expand Up @@ -942,10 +942,8 @@ rm -f $(GPERF_FILES)

<<makefile.rules>>=
$(GPERF_C): $(NOWEB_ORDER)
@# This for loop is a replacemnt for just setting root= to avoid
@# makepp stupidity (otherwise it adds root's value as dep)
@#root=$(@:%.c.gperf=%)
for root in $(@:%.c.gperf=%); do \
@# There needs to be a space before the first semi to avoid makepp bug.
root=$(@:%.c.gperf=%) ; \
noroots $(NOWEB_ORDER) | tr -d '<>' | grep \^$${root}-gperf- | \
while read r; do \
n=$${r#$${root}-gperf-}; \
Expand All @@ -957,13 +955,11 @@ $(GPERF_C): $(NOWEB_ORDER)
echo %%; \
notangle -R'Actual gperf lookup function' $(NOWEB_ORDER)) | \
gperf $$nc| sed "s/__GPERF_NAME__/$${n}/g"; \
done >$@; done
done >$@

$(GPERF_H): $(NOWEB_ORDER)
@# This for loop is a replacemnt for just setting root= to avoid
@# makepp stupidity (otherwise it adds root's value as dep)
@#root=$(@:%.h.gperf=%)
for root in $(@:%.h.gperf=%); do \
@# There needs to be a space before the first semi to avoid makepp bug.
root=$(@:%.h.gperf=%) ; \
noroots $(NOWEB_ORDER) | tr -d '<>' | grep \^$${root}-gperf- | \
while read r; do \
n=$${r#$${root}-gperf-}; n=$${n#nc-}; \
Expand All @@ -972,7 +968,7 @@ $(GPERF_H): $(NOWEB_ORDER)
notangle -R$$r $(NOWEB_ORDER) | tr \ \\n | sort -u | \
sed "s/^/$${n}_/;s/.*/\\U\\0/;s/[^A-Z0-9\\n]/_/g;s/^/,/"; \
echo \} $${n}_t\;; \
done >$@; done
done >$@
@

<<Build Source>>=
Expand Down

0 comments on commit 8f8de92

Please sign in to comment.