File: instrules

package info (click to toggle)
openscenegraph 1.2.0-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 26,924 kB
  • ctags: 25,229
  • sloc: cpp: 239,326; ansic: 2,178; sh: 1,990; yacc: 548; perl: 237; makefile: 227; lex: 151
file content (44 lines) | stat: -rw-r--r-- 1,497 bytes parent folder | download
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

install : default instclean
	@$(MAKE) __inst_lib
	@$(MAKE) __inst_headers

instlinks : instclean
	[ -d $(INST_INCLUDE) ] || mkdir -p $(INST_INCLUDE)
	$(LINK) `pwd`/include/Producer $(INST_INCLUDE)/Producer
	[ -d $(INST_LIBS) ] || mkdir -p $(INST_LIBS)
	$(LINK) `pwd`/lib/$(OS)$(ARCH)/$(LIB_PREFIX)Producer.$(LIB_EXT) $(INST_LIBS)/$(LIB_PREFIX)Producer.$(LIB_EXT)

instclean :
	rm -rf $(INST_INCLUDE)/Producer
	rm -f $(INST_LIBS)/$(LIB_PREFIX)Producer.$(LIB_EXT)
ifdef IMP_LIB_EXT
	rm -f $(INST_IMP_LIBS)/libProducer.$(IMP_LIB_EXT)
endif

instlibonly : 
	@$(MAKE) __inst_lib

__inst_lib:
	@[ -d $(INST_LIBS) ] || mkdir -p $(INST_LIBS)
	@$(INSTXCMD) lib/$(OS)$(ARCH)/$(LIB_PREFIX)Producer.$(LIB_EXT) $(INST_LIBS)/$(LIB_PREFIX)Producer.$(LIB_EXT)
ifdef IMP_LIB_EXT
	@[ -d $(INST_IMP_LIBS) ] || mkdir -p $(INST_IMP_LIBS)
	$(INSTXCMD) lib/$(OS)$(ARCH)/libProducer.$(IMP_LIB_EXT) $(INST_IMP_LIBS)/libProducer.$(IMP_LIB_EXT)
endif

__inst_headers:
	@[ -d $(INST_INCLUDE)/Producer ] || mkdir -p $(INST_INCLUDE)/Producer
	@for f in include/Producer/*; do \
		[ "`head -1 $$f | cut -c 1-12`" = "/* -*-c++-*-"  ] && \
			echo $(INSTRCMD) $$f $(INST_INCLUDE)/Producer; \
			     $(INSTRCMD) $$f $(INST_INCLUDE)/Producer; done


__inst_share:
	@for d in `find share/ -type d -print | grep -v CVS`; do \
        [ -d $(INST_LOCATION)/$$d ] || mkdir -p $(INST_LOCATION)/$$d; \
        done
	@for f in `find share/ -type f -print | grep -v CVS`; do \
        $(INSTRCMD) $$f $(INST_LOCATION)/$$f; \
        done