~nickpapior/siesta/trunk-buds-format0.92

« back to all changes in this revision

Viewing changes to Src/buds/smeka/Makefile.install

  • Committer: Nick Papior
  • Date: 2017-04-07 12:42:28 UTC
  • Revision ID: nickpapior@gmail.com-20170407124228-u5t08yr2p4fhzfeo
Initial commit of buds merged into siesta

Currently I have only enabled buds compilation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
_SMEKA_install = 1
 
2
 
 
3
# Basic implementation of installing the different
 
4
# libraries etc.
 
5
 
 
6
 
 
7
.PHONY: install
 
8
.NOTPARALLEL: install
 
9
install: smeka-install-lib smeka-install
 
10
 
 
11
 
 
12
.PHONY: smeka-install-lib
 
13
.NOTPARALLEL: smeka-install-lib
 
14
smeka-install-lib: smeka-install-init-dir
 
15
ifneq ($(LIBRARIES),)
 
16
        install -pm $(_OCT_rwxrxrx) -t $(LIB_DIR) $(LIBRARIES)
 
17
endif
 
18
 
 
19
 
 
20
.PHONY: smeka-install-init-dir
 
21
.NOTPARALLEL: smeka-install-init-dir
 
22
smeka-install-init-dir:
 
23
        -mkdir -p $(INC_DIR)
 
24
        -mkdir -p $(LIB_DIR)
 
25
        -mkdir -p $(BIN_DIR)
 
26
 
 
27
 
 
28
# Issuing uninstall will forcefully remove the installation directory
 
29
.PHONY: smeka-uninstall-install
 
30
.NOTPARALLEL: smeka-uninstall-install
 
31
smeka-uninstall-install:
 
32
        @echo ""
 
33
        @echo "The directory tree:"
 
34
        @echo "  $(PREFIX)"
 
35
        @echo "will be deleted!"
 
36
        @echo "You may abort the operation within 2 secs by pressing:"
 
37
        @echo ""
 
38
        @echo "  Ctrl+C or ^C"
 
39
        @echo ""
 
40
        @sleep 2
 
41
        @rm -rf $(PREFIX)
 
42
uninstall: smeka-uninstall-install
 
43
 
 
44
 
 
45
# Simple way to ALWAYS do user defined stuff at the end
 
46
.PHONY: smeka-install
 
47
.NOTPARALLEL: smeka-install
 
48
smeka-install:
 
49
 
 
50
# Local Variables:
 
51
#  mode: makefile-gmake
 
52
# End: