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