summaryrefslogtreecommitdiff
path: root/project/extras.mk
blob: 1c568d8935960d8d159995296274be1fd69c3559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
CFLAGS_PATH += -I$(SOURCE_DIR)/src
CFLAGS_PATH += -I$(SOURCE_DIR)/include/cparser
CFLAGS_PATH += -I$(SOURCE_DIR)/include/cparser/adt
CFLAGS_PATH += -I$(SOURCE_DIR)/include/cparser/ast
CFLAGS_PATH += -I$(SOURCE_DIR)/include/cparser/driver
CFLAGS_PATH += -I$(SOURCE_DIR)/include/cparser/firm
CFLAGS_PATH += -I$(SOURCE_DIR)/include/cparser/parser
CFLAGS_PATH += -I$(SOURCE_DIR)/include/cparser/wrappergen

src/driver/actions.o:	version.tag
src/driver/actions.lo:	version.tag


install-headers-custom:
		mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)
		mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/adt
		mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/ast
		mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/driver
		mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/firm
		mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/parser
		mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/wrappergen

		cp $(SOURCE_DIR)/AUTHOR \
		   $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)

		cp $(SOURCE_DIR)/COPYING \
		   $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/COPYING.CPARSER

		cp $(SOURCE_DIR)/README.md \
		   $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/README

		cp $(SOURCE_DIR)/src/adt/*.h \
		   $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/adt

		cp $(SOURCE_DIR)/src/ast/*.h \
		   $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/ast

		cp $(SOURCE_DIR)/src/driver/*.h \
		   $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/driver

		cp $(SOURCE_DIR)/src/firm/*.h \
		   $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/firm

		cp $(SOURCE_DIR)/src/parser/*.h \
		   $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/parser

		cp $(SOURCE_DIR)/src/wrappergen/*.h \
		   $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/wrappergen


install-man-custom:
		mkdir -p $(DESTDIR)$(MANDIR)/man1

		cp $(SOURCE_DIR)/cparser.1 \
		   $(DESTDIR)$(MANDIR)/man1

install-app-extras:	install-man-custom