File: Makefile.in

package info (click to toggle)
ghemical 1.01-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 10,984 kB
  • ctags: 19,443
  • sloc: ansic: 69,073; cpp: 60,583; fortran: 35,324; sh: 5,419; makefile: 506; perl: 91
file content (102 lines) | stat: -rw-r--r-- 2,870 bytes parent folder | download
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#
# Makefile.in
# This file is part of Ghemical
# Copyright (c) 2000 Geoff Hutchison
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# You should not need to modify much (if anything) in this file
# Instead, use the configure script

top_srcdir=     @top_srcdir@
srcdir=         @srcdir@
VPATH=          @srcdir@
top_builddir=	@top_builddir_@

# Program paths
SHELL=		@SHELL@
INSTALL=	@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_SCRIPT=	@INSTALL_SCRIPT@
INSTALL_DATA=	@INSTALL_DATA@

SRCDIRS=	openbabel miniMOPAC \
		src/common src/graphics \
		src/target3/glade src/target3
		
VERSION=	@VERSION@

gnome_help=	@datadir@/gnome/help/ghemical/C
prefix=		@prefix@
exec_prefix=	@exec_prefix@
data_dest=	@datadir@/ghemical
version_dest=	${data_dest}/${VERSION}
bindir=		@bindir@
create_dirs=	${bindir} ${version_dest} ${version_dest}/glade ${gnome_help} ${gnome_help}/images

all:
	@for i in $(SRCDIRS); do \
	(cd $$i; $(MAKE) $(MFLAGS) all) \
		|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
	done && test -z "$$fail"

distclean:	clean
	-@for i in $(SRCDIRS); do \
		(cd $$i; rm -f Makefile); done
	-rm -f miniMOPAC/libminiMOPAC.a
	-rm -f Makefile
	-rm -f config.log
	-rm -f config.status
	-rm -f src/config.h

clean:
	rm -f *.o *~ depend
	@for i in $(SRCDIRS); do \
		(cd $$i; $(MAKE) $(MFLAGS) clean) \
		|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
	done && test -z "$$fail"

install:	all
	@echo ""
	@echo "Creating directories (if needed)..."
	-@for i in $(create_dirs); do \
		$(top_srcdir)/mkinstalldirs $$i; \
	done && test -z "$$fail"
	@echo "Installing ghemical"
	$(INSTALL_PROGRAM) bin/ghemical $(bindir)
	@echo ""
	@echo "Copying parameter files"
	cp -r -p $(top_srcdir)/bin/parameters $(version_dest);
	@echo ""
	@echo "Copying libglade data files"
	cp -p $(top_srcdir)/src/target3/glade/*.glade $(version_dest)/glade;
	@echo ""
	@echo "Copying example files"
	cp -r -p $(top_srcdir)/bin/examples $(data_dest);
	@echo ""
	@echo "Copying file translators"
	cp -p $(top_srcdir)/openbabel/*.txt $(version_dest);
	@echo ""
	@echo "Copying help files"
	cp -p $(top_srcdir)/bin/user-docs/*.html $(gnome_help);
	cp -p $(top_srcdir)/bin/user-docs/images/*.png $(gnome_help)/images;
	
timestamps:
	@for i in $(SRCDIRS); do \
		(cd $$i; $(MAKE) $(MFLAGS) timestamps) \
		|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
	done && test -z "$$fail"


# These targets are for making sure the configure scripts are updated properly
#${srcdir}/configure: configure.in aclocal.m4
#	             cd ${srcdir} && autoconf

Makefile: Makefile.in $(top_builddir)/config.status
	  $(top_builddir)/config.status

config.status: $(top_srcdir)/configure