HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/bison/examples/d/calc/Makefile
# This Makefile is designed to be simple and readable.  It does not
# aim at portability.  It requires GNU Make.

BISON = bison
DC = dmd

all: calc

%.d %.html %.gv: %.y
	$(BISON) $(BISONFLAGS) --html --graph -o $*.d $<

%: %.d
	$(DC) $(DCFLAGS) $<

run: calc
	@echo "Type arithmetic expressions.  Quit with ctrl-d."
	./$<

clean:
	rm -f calc calc.d calc.xml calc.gv calc.html *.o