File: Makefile.cvs

package info (click to toggle)
xnee 3.06-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,324 kB
  • ctags: 2,429
  • sloc: ansic: 21,992; sh: 12,427; makefile: 563
file content (53 lines) | stat: -rw-r--r-- 1,785 bytes parent folder | download | duplicates (8)
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
generate:
	@echo "*** Creating autotools dir"
	-mkdir autotools/
#	@echo "*** intltoolize (in pnee) ** "
	libtoolize --automake  --copy --force

	@echo "*** Retrieving configure tests needed by configure.in"
	@aclocal -I ./autotools/
	@ # echo "*** Scanning for include statements"
	@autoheader
	@echo "*** Building Makefile templates (step one)"
	@automake --add-missing 
	@echo "*** Building Makefile templates (step two)"
	@autoconf
	@if grep "ac_kw foo" configure &>/dev/null; then perl -p -i -e "s/ac_kw foo/ac_kw int foo/" configure; fi
	@perl -pi -e 'if (/\[\/\$$\]\*. INSTALL=/) { print $$_ ; $$_ = "\"\") ;;\n"; }' configure
	@-rm -f config.cache config.h
	@echo "*** Create date/time stamp"
	@touch stamp-h.in
	@echo "*** Finished"
	@echo "    Don't forget to run configure:"
	@echo "    ./configure  --enable-doc"
	@echo "    If you haven't done so in a while, run ./configure --help"


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 informations."; \
          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