1 ## Process this file with automake to produce Makefile.in
5 $(DISABLE_DEPRECATED) \
6 -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
7 -DPACKAGE_GLADE_DIR=\""$(datadir)/gcalctool"\" \
8 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
9 -DPACKAGE_PIXMAP_DIR=\""$(prefix)/$(DATADIRNAME)/pixmaps"\" \
11 $(GNOME_UTILS_CFLAGS) \
14 bin_PROGRAMS = gcalctool
56 $(AR) r libparser.a $^
59 ce_parser.o: ce_parser.c ce_parser.h
60 $(COMPILE) -c $(INCLUDES) -o $@ $(srcdir)/ce_parser.c
62 lr_parser.o: lr_parser.c lr_parser.h
63 $(COMPILE) -c $(INCLUDES) -o $@ $(srcdir)/lr_parser.c
66 $(COMPILE) -c $(INCLUDES) -o $@ $^
69 $(COMPILE) -c $(INCLUDES) -o $@ $^
71 ce_parser.tab.o: ce_parser.tab.c
72 $(COMPILE) -c $(INCLUDES) -o $@ $^
74 ce_parser.tab.c: ce_parser.y
75 bison -d -p ce -d $(srcdir)/ce_parser.y
77 lr_parser.tab.o: lr_parser.tab.c
78 $(COMPILE) -c $(INCLUDES) -o $@ $^
80 lr_parser.tab.c: lr_parser.y
81 bison -d -p lr $(srcdir)/lr_parser.y
83 lex.ce.c: ce_parser.tab.c ce_tokeniser.l
84 $(LEX) -Pce $(srcdir)/ce_tokeniser.l
86 lex.lr.c: lr_parser.tab.c lr_tokeniser.l
87 $(LEX) -i -Plr $(srcdir)/lr_tokeniser.l
90 ls *[ch] | xargs indent -nbad -bap -bbo -nbc -br\
91 -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -cp33 \
92 -cs -d0 -di1 -nfc1 -nfca -hnl -i4 -ip0 -l75 -lp -npcs\
93 -nprs -npsl -nut -saf -sai -saw -nsc -nsob -nss
95 man1_MANS = gcalctool.1
97 # Install a symlink between gcalctool and gnome-calculator
99 test -e "$(DESTDIR)$(bindir)/gnome-calculator" \
100 || (cd "$(DESTDIR)$(bindir)" && ln -s gcalctool gnome-calculator)
102 # Remove the symlink between gcalctool and gnome-calculator
104 test -h "$(DESTDIR)$(bindir)/gnome-calculator" \
105 && rm -f "$(DESTDIR)$(bindir)/gnome-calculator"