Fix name of MIT license in LICENSE file (#19601)
[mono-project.git] / mcs / jay / Makefile
blob1af6867ad7bebc4f4b4be15c6f4d7244b7702264
1 thisdir := jay
2 SUBDIRS :=
3 include ../build/rules.make
5 LOCAL_CFLAGS = -DSKEL_DIRECTORY=\""$(prefix)/share/jay"\"
6 NO_INSTALL = yes
8 sources = closure.c error.c lalr.c lr0.c main.c mkpar.c output.c reader.c \
9 symtab.c verbose.c warshall.c
11 datafiles = ACKNOWLEDGEMENTS NEW_FEATURES NOTES README README.jay skeleton \
12 skeleton.cs
14 DISTFILES = $(datafiles) $(sources) jay.1 $(wildcard *.h) jay.vcxproj
16 all-local: jay
18 install-local:
19 uninstall-local:
21 ifndef NO_INSTALL
22 install-local: jay
23 $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/bin
24 $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/share/jay
25 $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/share/man/man1
26 $(INSTALL_BIN) jay $(DESTDIR)$(prefix)/bin
27 for datafile in $(datafiles) ; do \
28 $(INSTALL_DATA) $$datafile $(DESTDIR)$(prefix)/share/jay ; \
29 done
30 $(INSTALL_DATA) jay.1 $(DESTDIR)$(prefix)/share/man/man1
32 uninstall-local:
33 -rm -f $(DESTDIR)$(prefix)/bin/jay
34 for datafile in $(datafiles) ; do \
35 rm -f $(DESTDIR)$(prefix)/share/jay/$$datafile || : ; \
36 done
37 -rm -f $(DESTDIR)$(prefix)/share/man/man1/jay.1
38 endif
40 csproj-local:
42 clean-local:
43 rm -f jay *.o *.exe *.pdb
45 dist-local: dist-default
47 test-local run-test-local run-test-ondotnet-local doc-update-local:
49 ifndef ENABLE_MSVC_ONLY
51 jay: $(sources:.c=.o)
52 $(CCOMPILE) $(LDFLAGS) -o $@ $^
54 %.o: %.c
55 $(CCOMPILE) $(JAY_CFLAGS) -c -o $@ $^
57 else # !ENABLE_MSVC_ONLY
59 jay:
60 make -C $(topdir)/../msvc jay
62 endif # !ENABLE_MSVC_ONLY