File: Makefile.cvs

package info (click to toggle)
freefem 3.5.8-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,456 kB
  • sloc: cpp: 10,323; sh: 10,270; perl: 121; makefile: 120
file content (44 lines) | stat: -rw-r--r-- 1,113 bytes parent folder | download | duplicates (7)
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
# -*- Mode: makefile  -*-
# SUMMARY:      
# USAGE:        make <make-target>
# AUTHOR:       Christophe Prud'homme
# ORG:          Christophe Prud'homme
# E-MAIL:       Christophe.Prudhomme@ann.jussieu.fr
# ORIG-DATE:    20-Oct-98 at 00:57:04
# LAST-MOD:     27-Nov-98 at 14:59:53 by Christophe Prud'homme
# DESCRIPTION:  
# DESCRIP-END.	

all:
	@admin/autogen.sh

SUFFIXES	= .cpp .hpp .c .h .f .F .o .moc


cvs-clean:
	@if test ! -d CVS; then \
	  echo "You don't have a toplevel CVS directory."; \
	  echo "You most certainly didn't use cvs to get these sources."; \
	  echo "But this function depends on cvs's information."; \
	  exit 1 ;\
	fi;\
	pwd=`pwd` ;\
	dirs=`find . -type d | grep -v CVS | sed -e "s#^./##"` ;\
	for i in $$dirs; do \
	  if test ! -d "$$pwd/$$i/CVS"; then \
	    echo "D $$i" ;\
	    rm -rf "$$pwd/$$i"; \
	    continue; \
	  fi ;\
	  cd $$pwd/$$i ;\
	  for f in * .*; do \
	    if test ! -d "$$f"; then \
	      if grep "^/$$f/" CVS/Entries > /dev/null; then \
		a="b"; \
	      else \
	        echo "F $$i/$$f"; \
		rm -f "$$pwd/$$i/$$f"; \
	      fi; \
	    fi ; \
	  done; \
	done