Skip to content

Commit cba050c

Browse files
committed
Merge pull request #31 from davvid/miscellany
Miscellaneous maintenance
2 parents 4bee4b7 + c131c8e commit cba050c

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
/build
33
/Linux-*
44
/Darwin-*
5-
kbuild*
65
*#*#
6+
*~
77
CMakeCache.txt

Makefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/usr/bin/env make
2+
SH ?= sh
3+
uname_S := $(shell $(SH) -c 'uname -s || echo system')
4+
uname_R := $(shell $(SH) -c 'uname -r | cut -d- -f1 || echo release')
5+
uname_M := $(shell $(SH) -c 'uname -m || echo cpu')
6+
FLAVOR ?= optimize
7+
8+
platformdir ?= $(uname_S)-$(uname_R)-$(uname_M)-$(FLAVOR)
9+
builddir ?= $(CURDIR)/build/$(platformdir)
10+
11+
prefix ?= $(CURDIR)/$(platformdir)
12+
#DESTDIR =
13+
14+
CMAKE_FLAGS ?= -DCMAKE_INSTALL_PREFIX=$(prefix)
15+
16+
# The default target in this Makefile is...
17+
all::
18+
19+
install: all
20+
$(MAKE) -C $(builddir) DESTDIR=$(DESTDIR) install
21+
22+
$(builddir)/stamp: $(CMAKE_FILES)
23+
mkdir -p $(builddir)
24+
cd $(builddir) && cmake $(CMAKE_FLAGS) ../..
25+
touch $@
26+
27+
all:: $(builddir)/stamp
28+
$(MAKE) -C $(builddir) $(MAKEARGS) all
29+
30+
clean: $(builddir)/stamp
31+
$(MAKE) -C $(builddir) $(MAKEARGS) clean
32+
33+
.PHONY: all
34+
.PHONY: clean
35+
.PHONY: install
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/SeExprSpecParser.cpp
2+
/SeExprSpecParserLex.cpp
3+
/SeExprSpecParser.tab.h

0 commit comments

Comments
 (0)