forked from smackers/smack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.smack.share
61 lines (60 loc) · 2.56 KB
/
Makefile.smack.share
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
58
59
60
61
#------------------------------------------------------------------------
# Installation of SMACK share
#------------------------------------------------------------------------
ifdef NO_INSTALL
install-local::
$(Echo) Install circumvented with NO_INSTALL
uninstall-local::
$(Echo) Uninstall circumvented with NO_INSTALL
else
install-local::
$(Echo) Installing share
$(Verb) $(MKDIR) $(DESTDIR)$(PROJ_datadir)/smack/include
$(Verb) if test -d "$(PROJ_SRC_ROOT)/share/smack/include" ; then \
cd $(PROJ_SRC_ROOT)/share/smack/include && \
for hdr in `find . -type f | \
grep -v CVS | grep -v .svn` ; do \
instdir=`dirname "$(DESTDIR)$(PROJ_datadir)/smack/include/$$hdr"` ; \
if test \! -d "$$instdir" ; then \
$(EchoCmd) Making install directory $$instdir ; \
$(MKDIR) $$instdir ;\
fi ; \
$(DataInstall) $$hdr $(DESTDIR)$(PROJ_datadir)/smack/include/$$hdr ; \
done ; \
fi
$(Verb) $(MKDIR) $(DESTDIR)$(PROJ_datadir)/smack/lib
$(Verb) if test -d "$(PROJ_SRC_ROOT)/share/smack/lib" ; then \
cd $(PROJ_SRC_ROOT)/share/smack/lib && \
for hdr in `find . -type f | \
grep -v CVS | grep -v .svn` ; do \
instdir=`dirname "$(DESTDIR)$(PROJ_datadir)/smack/lib/$$hdr"` ; \
if test \! -d "$$instdir" ; then \
$(EchoCmd) Making install directory $$instdir ; \
$(MKDIR) $$instdir ;\
fi ; \
$(DataInstall) $$hdr $(DESTDIR)$(PROJ_datadir)/smack/lib/$$hdr ; \
done ; \
fi
uninstall-local::
$(Echo) Uninstalling share
$(Verb) if [ -d "$(PROJ_SRC_ROOT)/share/smack/include" ] ; then \
cd $(PROJ_SRC_ROOT)/share/smack/include && \
$(RM) -f `find . -path '*/Internal' -prune -o '(' -type f \
'!' '(' -name '*~' -o -name '.#*' \
-o -name '*.in' ')' -print ')' | \
grep -v CVS | sed 's#^#$(DESTDIR)$(PROJ_datadir)/smack/include/#'` ; \
cd $(PROJ_SRC_ROOT)/share/smack/include && \
$(RM) -f `find . -path '*/Internal' -prune -o '(' -type f -name '*.in' \
-print ')' | sed 's#\.in$$##;s#^#$(DESTDIR)$(PROJ_datadir)/smack/include/#'` ; \
fi
$(Verb) if [ -d "$(PROJ_SRC_ROOT)/share/smack/lib" ] ; then \
cd $(PROJ_SRC_ROOT)/share/smack/lib && \
$(RM) -f `find . -path '*/Internal' -prune -o '(' -type f \
'!' '(' -name '*~' -o -name '.#*' \
-o -name '*.in' ')' -print ')' | \
grep -v CVS | sed 's#^#$(DESTDIR)$(PROJ_datadir)/smack/lib/#'` ; \
cd $(PROJ_SRC_ROOT)/share/smack/lib && \
$(RM) -f `find . -path '*/Internal' -prune -o '(' -type f -name '*.in' \
-print ')' | sed 's#\.in$$##;s#^#$(DESTDIR)$(PROJ_datadir)/smack/lib/#'` ; \
fi
endif