Permalink
Browse files

Added TAGS support for Slate source files.

  • Loading branch information...
1 parent aa0e702 commit 3e1a5c6c0132fd7927f1802a3637500141af4b85 @briantrice committed Oct 16, 2011
Showing with 7 additions and 2 deletions.
  1. +6 −2 Makefile
  2. +1 −0 common.mk
View
@@ -89,12 +89,16 @@ pluginsclean:
vmclean:
$(MAKE) -C src/vm clean
-clean: pluginsclean vmclean
+tagsclean:
+ $(RM) TAGS
+
+clean: pluginsclean vmclean tagsclean
tags: TAGS
TAGS: $(SOURCES) $(HEADERS)
$(SECHO) "Creating $@ file"
- $(SILENT) $(ETAGS) $(SOURCES) $(HEADERS)
+ $(SILENT) $(ETAGS) $(SOURCES) $(HEADERS) -o $@
+ $(SILENT) $(ETAGS) -a --lang=none -r '/^[^\[\n]*@[^\[\"]*$$/' $(SLATE_SOURCES) -o $@
.PHONY: clean superclean backup plugins pluginsclean vmclean
View
@@ -131,6 +131,7 @@ LATEST_SLATE_IMAGE_RELEASE_DATE = 2011-03-15
LATEST_SLATE_IMAGE_RELEASE_NAME ?= slate.$(BYTE_ORDER_PREFIX).$(WORD_SIZE).$(LATEST_SLATE_IMAGE_RELEASE_DATE).image
LATEST_SLATE_IMAGE_URL ?= http://slate-language.googlecode.com/files/$(LATEST_SLATE_IMAGE_RELEASE_NAME).bz2
BOOTSTRAP_DIR := $(slateroot)
+SLATE_SOURCES ?= $(srcdir)/**/*.slate
CFLAGS_x-windows.c=`pkg-config --cflags x11` `pkg-config --cflags cairo` -Werror
LDFLAGS_x-windows.lo=`pkg-config --libs x11` `pkg-config --libs cairo`

0 comments on commit 3e1a5c6

Please sign in to comment.