From 1a5390243edf87b21e7bba0568150d50e3f10d5a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 22 Jun 2004 02:19:15 -0400 Subject: Makefile and sample.dat changes --- Makefile | 14 +++++++++----- sample.dat | 11 +++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 sample.dat diff --git a/Makefile b/Makefile index 7984814f..fc432c46 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,9 @@ CODE = amount.cc ledger.cc parse.cc reports.cc OBJS = $(patsubst %.cc,%.o,$(CODE)) #CXX = cc CXX = g++ -CFLAGS = -Wall -ansi -pedantic -#DFLAGS = -O3 -fomit-frame-pointer -DFLAGS = -g -DDEBUG=1 +CFLAGS = #-Wall -ansi -pedantic +DFLAGS = -O3 -fomit-frame-pointer +#DFLAGS = -g -DDEBUG=1 INCS = -I/sw/include -I/usr/include/gcc/darwin/3.3/c++ -I/usr/include/gcc/darwin/3.3/c++/ppc-darwin LIBS = -L/sw/lib -lgmpxx -lgmp -lpcre @@ -27,14 +27,18 @@ ledger: $(OBJS) ledger.info: ledger.texi makeinfo $< +ledger.pdf: ledger.texi + texi2pdf $< + %.o: %.cc $(CXX) $(CFLAGS) $(INCS) $(DFLAGS) -c -o $@ $< clean: - rm -f ledger *.o *.elc *~ .\#* + rm -f ledger *.o *.elc *~ .\#* .gdb_history README.texi + rm -f *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr distclean fullclean: clean - rm -f ledger.info README.html README.pdf *.elc make.deps + rm -f ledger.info README.html *.pdf *.elc make.deps TAGS rebuild: clean deps all diff --git a/sample.dat b/sample.dat new file mode 100644 index 00000000..4e714275 --- /dev/null +++ b/sample.dat @@ -0,0 +1,11 @@ +2004/05/01 Checking balance + Assets:Checking $500.00 + Equity:Opening Balances + +2004/05/29 Book Store + Expenses:Books $20.00 + Assets:Checking + +2004/05/29 Restaurant + Expenses:Food $50.00 + Liabilities:MasterCard -- cgit v1.2.3