File: Makefile.common

package info (click to toggle)
licq 1.3.4-2
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 22,048 kB
  • ctags: 8,640
  • sloc: cpp: 76,924; sh: 9,845; ansic: 5,424; perl: 3,449; lex: 857; xml: 804; php: 691; makefile: 393; csh: 48
file content (35 lines) | stat: -rw-r--r-- 1,238 bytes parent folder | download | duplicates (2)
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
cvs:
	@echo "*** Concatenating configure tests into acinclude.m4"
	@-rm -f acinclude.m4
	@$(MAKE) -f Makefile.am top_srcdir=. acinclude.m4
	@echo "*** Retrieving configure tests needed by configure.in"
	@aclocal $(ACLOCAL_FLAGS)
	@echo "*** Scanning for include statements"
	@autoheader
	@echo "*** Building Makefile templates (step one)"
	@automake
	@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 "    If you haven't done so in a while, run ./configure --help"

cvs-clean:
	@if test ! -d .svn; then \
		echo "You don't have a toplevel .svn directory."; \
		echo "You most certainly didn't use svn to get these sources."; \
		echo "But this function depends on svn's informations."; \
		exit 1 ;\
	fi;\
	svn status --ignore-externals --no-ignore --non-interactive | \
	grep '^I' | sed -e 's/^I *//' | \
	xargs -I file rm -rfv "file"

svn: cvs

svn-clean: cvs-clean