Oops, actually correctly revert that commit.
[mono-project.git] / mcs / jay / Makefile
blobf14055f82760f24bb539365867f82cf8650cf76f
1 thisdir := jay
2 SUBDIRS :=
3 include ../build/rules.make
5 LOCAL_CFLAGS = -DSKEL_DIRECTORY=\""$(prefix)/share/jay"\"
7 sources = closure.c error.c lalr.c lr0.c main.c mkpar.c output.c reader.c \
8 symtab.c verbose.c warshall.c
10 datafiles = ACKNOWLEDGEMENTS NEW_FEATURES NOTES README README.jay skeleton \
11 skeleton.cs
13 DISTFILES = $(datafiles) $(sources) jay.1 $(wildcard *.h) jay.vcxproj
15 all-local: jay
17 install-local: jay
18 uninstall-local:
20 ifndef NO_INSTALL
21 install-local:
22 $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/bin
23 $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/share/jay
24 $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/share/man/man1
25 $(INSTALL_BIN) jay $(DESTDIR)$(prefix)/bin
26 for datafile in $(datafiles) ; do \
27 $(INSTALL_DATA) $$datafile $(DESTDIR)$(prefix)/share/jay ; \
28 done
29 $(INSTALL_DATA) jay.1 $(DESTDIR)$(prefix)/share/man/man1
31 uninstall-local:
32 -rm -f $(DESTDIR)$(prefix)/bin/jay
33 for datafile in $(datafiles) ; do \
34 rm -f $(DESTDIR)$(prefix)/share/jay/$$datafile || : ; \
35 done
36 -rm -f $(DESTDIR)$(prefix)/share/man/man1/jay.1
37 endif
39 csproj-local:
41 clean-local:
42 rm -f jay *.o *.exe *.pdb
44 dist-local: dist-default
46 test-local run-test-local run-test-ondotnet-local doc-update-local:
48 jay: $(sources:.c=.o)
49 $(CCOMPILE) $(LDFLAGS) -o $@ $^
51 %.o: %.c
52 $(CCOMPILE) $(JAY_CFLAGS) -c -o $@ $^