5 # Change this to the real version of the distribution
10 # Use this when you are building the CVS version
15 # Use this when you are building the Released version (comment out above)
16 #CD_VERSION=-$(VERSION)
23 # You can set any global options you want here to be passed to the
24 # individual ./configure scripts
28 ############################################################################
30 ############################################################################
33 @echo
$(VERSION
) $(CD_VERSION
) $(DIR_PREFIX
)
34 @echo
"gEDA Toplevel Makefile"
35 @echo
"This Makefile requires libgeda, symbols, gschem, gnetlist,"
36 @echo
"gsymcheck, utils, docs, and examples source tarball packages"
37 @echo
"untarred in this: `pwd` directory"
41 @echo
"${MAKE} xinstall Builds and runs gEDA Suite Setup"
42 @echo
"${MAKE} install Installs gEDA/gaf into $(prefix)"
43 @echo
"${MAKE} uninstall Uninstall gEDA/gaf from $(prefix)"
44 @echo
"${MAKE} clean Simple clean only (remove all .o and bins)"
46 @echo
"These targets are primarily used by the developers:"
47 @echo
"${MAKE} reconfig Recreate ./configure (and all Makefiles)"
48 @echo
"${MAKE} maint Total maintenance clean"
49 @echo
"${MAKE} distcheck Create distribution (using make distcheck)"
50 @echo
"${MAKE} distconfig Create dist ./configure (and all Makefiles)"
51 @echo
"${MAKE} distclean Does a make distclean in each subdir"
52 @echo
"${MAKE} config Just do the ./configure --prefix=${prefix}"
53 @echo
"${MAKE} proto Recreate all prototype.h files"
54 @echo
"${MAKE} dist Create distribution (using make dist)"
55 @echo
"${MAKE} src Create all *.c files from *.nw files"
56 @echo
"${MAKE} all Just build. Do not use! Run make install"
59 @echo
"---------------------------READ THIS---------------------------"
60 @echo
"Before executing any of the above targets, set the below shell"
61 @echo
"variables. The build process _will fail_ if you do not set"
62 @echo
"these variables! You will also need to set these variables to"
63 @echo
"run the programs."
65 @echo
"gEDA/gaf will be installed into ${prefix}"
67 @echo
"For vanilla bourne shells:"
68 @echo LD_LIBRARY_PATH
=${prefix}/lib
:\
$$LD_LIBRARY_PATH
69 @echo
"export LD_LIBRARY_PATH"
70 @echo PATH
=${prefix}/bin
:\
$$\
{PATH\
}
72 @echo PKG_CONFIG_PATH
=${prefix}/lib
/pkgconfig
:\
$$PKG_CONFIG_PATH
73 @echo
"export PKG_CONFIG_PATH"
76 @echo
export LD_LIBRARY_PATH
=${prefix}/lib
:\
$$LD_LIBRARY_PATH
77 @echo
export PATH
=${prefix}/bin
:\
$$\
{PATH\
}
78 @echo
export PKG_CONFIG_PATH
=${prefix}/lib
/pkgconfig
:\
$$PKG_CONFIG_PATH
80 @echo
"For csh/tcsh shell:"
81 @echo setenv LD_LIBRARY_PATH
${prefix}/lib
:\
$$LD_LIBRARY_PATH
82 @echo setenv PATH
${prefix}/bin
:\
$$PATH
83 @echo setenv PKG_CONFIG_PATH
${prefix}/lib
/pkgconfig
:\
$$PKG_CONFIG_PATH
85 @echo
"---------------------------READ THIS---------------------------"
88 # This installs libgeda and symbols and just builds gschem and gnetlist
89 all: libgeda symbols gschem gnetlist gsymcheck geda setup utils docs examples
91 # libgeda_install or symbols_install is not needed since the default
92 # libgeda does a make install (ditto for symbols)
93 # This also installs gschem, gnetlist, and gsymcheck
94 install: gschem_install gnetlist_install gsymcheck_install geda_install\
95 setup_install utils_install docs_install examples_install
97 uninstall: utils_uninstall gsymcheck_uninstall gnetlist_uninstall \
98 gschem_uninstall symbols_uninstall libgeda_uninstall \
99 geda_uninstall setup_uninstall docs_uninstall examples_uninstall
101 # It runs installation using setup.
104 if
! test -f setup.sh
; then \
105 if
test -x
$(DIR_PREFIX
)setup
$(CD_VERSION
)/src
/setup.sh
; then \
106 cp
$(DIR_PREFIX
)setup
$(CD_VERSION
)/src
/setup.sh .
; \
107 elif
test -f
$(DIR_PREFIX
)setup
$(CD_VERSION
).
tar.gz
; then \
108 tar -xzf
$(DIR_PREFIX
)setup
$(CD_VERSION
).
tar.gz
$(DIR_PREFIX
)setup
$(CD_VERSION
)/src
/setup.sh
; \
109 cp
$(DIR_PREFIX
)setup
$(CD_VERSION
)/src
/setup.sh .
; \
111 echo
"ERROR ! Cannot find setup.sh ..." >&2 ; \
117 if
! test -f setup.cfg
; then \
118 if
test -f
$(DIR_PREFIX
)setup
$(CD_VERSION
)/src
/setup.cfg
; then \
119 cp
$(DIR_PREFIX
)setup
$(CD_VERSION
)/src
/setup.cfg .
; \
120 elif
test -f
$(DIR_PREFIX
)setup
$(CD_VERSION
).
tar.gz
; then \
121 tar -xzf
$(DIR_PREFIX
)setup
$(CD_VERSION
).
tar.gz
$(DIR_PREFIX
)setup
$(CD_VERSION
)/src
/setup.cfg
; \
122 cp
$(DIR_PREFIX
)setup
$(CD_VERSION
)/src
/setup.cfg .
; \
124 echo
"ERROR ! Cannot find setup.cfg ..." >&2 ; \
131 # This does a maintainer-clean removes EVERYTHING that's config/built
132 maint
: libgeda_maint symbols_maint gschem_maint gnetlist_maint \
133 gsymcheck_maint utils_maint geda_maint setup_maint docs_maint \
136 # This does a plain clean
137 clean: libgeda_clean symbols_clean gschem_clean gnetlist_clean \
138 gsymcheck_clean utils_clean geda_clean setup_clean docs_clean \
141 # This does a dist clean
142 distclean: libgeda_distclean symbols_distclean gschem_distclean \
143 gnetlist_distclean gsymcheck_distclean utils_distclean \
144 geda_distclean setup_distclean docs_distclean examples_distclean
146 # This just does the appropriate ./configure --prefix=...
147 config
: libgeda_config symbols_config gschem_config gnetlist_config \
148 gsymcheck_config utils_config geda_config setup_config docs_config \
151 # This recreates all ./configure scripts and Makefile.in files
152 reconfig
: libgeda_reconfig symbols_reconfig gschem_reconfig gnetlist_reconfig \
153 gsymcheck_reconfig utils_reconfig geda_reconfig setup_reconfig \
154 docs_reconfig examples_reconfig
156 # This creates all *.c files from *.nw files
157 src
: libgeda_src gschem_src
159 # This recreates all ./configure scripts and Makefile.in files ready
160 # for distribution (removes dependency checking)
161 distconfig
: libgeda_distconfig symbols_distconfig gschem_distconfig \
162 gnetlist_distconfig gsymcheck_distconfig utils_distconfig \
163 geda_distconfig setup_distconfig docs_distconfig \
166 dist: libgeda_dist symbols_dist gschem_dist \
167 gnetlist_dist gsymcheck_dist utils_dist \
168 geda_dist setup_dist docs_dist examples_dist
169 mv
-f libgeda
/libgeda
*.
tar.gz .
170 mv
-f symbols
/geda-symbols
*.
tar.gz .
171 mv
-f gschem
/geda-gschem
*.
tar.gz .
172 mv
-f gnetlist
/geda-gnetlist
*.
tar.gz .
173 mv
-f gsymcheck
/geda-gsymcheck
*.
tar.gz .
174 mv
-f utils
/geda-utils
*.
tar.gz .
175 mv
-f geda
/geda-
*.
tar.gz .
176 mv
-f setup
/geda-setup-
*.
tar.gz .
177 mv
-f docs
/geda-docs
*.
tar.gz .
178 mv
-f examples
/geda-examples
*.
tar.gz .
180 distcheck
: libgeda_distcheck symbols_distcheck gschem_distcheck \
181 gnetlist_distcheck gsymcheck_distcheck utils_distcheck \
182 geda_distcheck setup_distcheck docs_distcheck examples_distcheck
183 mv
-f libgeda
/libgeda
*.
tar.gz .
184 mv
-f symbols
/symbols
*.
tar.gz .
185 mv
-f gschem
/geda-gschem
*.
tar.gz .
186 mv
-f gnetlist
/geda-gnetlist
*.
tar.gz .
187 mv
-f gsymcheck
/geda-gsymcheck
*.
tar.gz .
188 mv
-f utils
/geda-utils
*.
tar.gz .
189 mv
-f geda
/geda-
*.
tar.gz .
190 mv
-f setup
/setup-
*.
tar.gz .
191 mv
-f docs
/geda-docs
*.
tar.gz .
192 mv
-f examples
/geda-examples
*.
tar.gz .
194 # This recreates all ./configure scripts and Makefile.in files
195 # TODO: added geda and setup
196 proto
: libgeda_proto gschem_proto gnetlist_proto gsymcheck_proto
198 ############################################################################
200 ############################################################################
203 symbols
: $(DIR_PREFIX
)symbols
$(CD_VERSION
)/configure
204 @echo symbols Installed
206 symbols_maint
: $(DIR_PREFIX
)symbols
$(CD_VERSION
)/system-commonrc
207 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); ${MAKE} maintainer-clean
)
209 symbols_clean
: $(DIR_PREFIX
)symbols
$(CD_VERSION
)/system-commonrc
210 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); ${MAKE} clean )
212 symbols_distclean
: $(DIR_PREFIX
)symbols
$(CD_VERSION
)/system-commonrc
213 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); ${MAKE} distclean )
215 symbols_install
: $(DIR_PREFIX
)symbols
$(CD_VERSION
)/configure \
216 $(DIR_PREFIX
)symbols
$(CD_VERSION
)/Makefile
217 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); ${MAKE} install )
219 symbols_uninstall
: $(DIR_PREFIX
)symbols
$(CD_VERSION
)/system-commonrc
220 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); ${MAKE} uninstall )
222 symbols_config
: $(DIR_PREFIX
)symbols
$(CD_VERSION
)/configure
223 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); \
224 .
/configure
--prefix=$(prefix) $(opts
) )
227 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); aclocal
; autoconf
; automake
)
230 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); aclocal
; autoconf
; \
231 automake
--include-deps
)
234 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); ${MAKE} dist )
237 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); ${MAKE} distcheck
)
240 gschem
: $(DIR_PREFIX
)gschem
$(CD_VERSION
)/configure \
241 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h \
242 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/src
/gschem
245 gschem_install
: libgeda_install symbols_install \
246 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/configure \
247 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h \
248 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/src
/gschem
249 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} install )
251 gschem_uninstall
: $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h
252 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} uninstall )
254 gschem_config
: libgeda-pc-install \
255 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/configure
256 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); \
257 .
/configure
--prefix=$(prefix) $(opts
) )
260 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); aclocal
; autoconf
; automake
)
263 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
)/src
; ${MAKE} src
)
266 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); aclocal
; autoconf
; \
267 automake
--include-deps
)
270 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} dist )
273 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} distcheck
)
275 gschem_maint
: $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h
276 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} maintainer-clean
)
278 gschem_clean
: $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h
279 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} clean )
281 gschem_distclean
: $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h
282 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} distclean )
284 gschem_proto
: $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h
285 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
)/src
; ${MAKE} proto
)
288 gnetlist
: $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/configure \
289 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h \
290 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/src
/gnetlist
293 gnetlist_install
: libgeda_install symbols_install \
294 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/configure \
295 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h \
296 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/src
/gnetlist
297 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} install )
299 gnetlist_uninstall
: $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h
300 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} uninstall )
302 gnetlist_maint
: $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h
303 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} maintainer-clean
)
305 gnetlist_clean
: $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h
306 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} clean )
308 gnetlist_distclean
: $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h
309 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} distclean )
311 gnetlist_proto
: $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h
312 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/src
; ${MAKE} proto
)
314 gnetlist_config
: libgeda-pc-install \
315 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/configure
316 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); \
317 .
/configure
--prefix=$(prefix) $(opts
) )
320 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); aclocal
; autoconf
; automake
)
323 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); aclocal
; autoconf
; \
324 automake
--include-deps
)
327 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} dist )
330 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} distcheck
)
333 gsymcheck
: $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/configure \
334 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h \
335 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/src
/gsymcheck
336 @echo gsymcheck Built
338 gsymcheck_install
: libgeda_install symbols_install \
339 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/configure \
340 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h \
341 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/src
/gsymcheck
342 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} install )
344 gsymcheck_uninstall
: $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h
345 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} uninstall )
347 gsymcheck_config
: libgeda-pc-install \
348 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/configure
349 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); \
350 .
/configure
--prefix=$(prefix) $(opts
) )
353 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); aclocal
; autoconf
; automake
)
355 gsymcheck_distconfig
:
356 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); aclocal
; autoconf
; \
357 automake
--include-deps
)
360 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} dist )
363 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} distcheck
)
365 gsymcheck_maint
: $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h
366 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} maintainer-clean
)
368 gsymcheck_clean
: $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h
369 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} clean )
371 gsymcheck_distclean
: $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h
372 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} distclean )
374 gsymcheck_proto
: $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h
375 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/src
; ${MAKE} proto
)
378 utils
: $(DIR_PREFIX
)utils
$(CD_VERSION
)/configure \
379 $(DIR_PREFIX
)utils
$(CD_VERSION
)/config.h \
380 $(DIR_PREFIX
)utils
$(CD_VERSION
)/src
/gmk_sym
383 utils_install
: libgeda_install symbols_install \
384 $(DIR_PREFIX
)utils
$(CD_VERSION
)/configure \
385 $(DIR_PREFIX
)utils
$(CD_VERSION
)/config.h \
386 $(DIR_PREFIX
)utils
$(CD_VERSION
)/src
/gmk_sym
387 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} install )
389 utils_uninstall
: $(DIR_PREFIX
)utils
$(CD_VERSION
)/config.h
390 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} uninstall )
392 utils_config
: libgeda-pc-install \
393 $(DIR_PREFIX
)utils
$(CD_VERSION
)/configure
394 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); \
395 .
/configure
--prefix=$(prefix) $(opts
) )
398 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); aclocal
; autoconf
; automake
)
401 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); aclocal
; autoconf
; \
402 automake
--include-deps
)
405 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} dist )
408 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} distcheck
)
410 utils_maint
: $(DIR_PREFIX
)utils
$(CD_VERSION
)/config.h
411 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} maintainer-clean
)
413 utils_clean
: $(DIR_PREFIX
)utils
$(CD_VERSION
)/config.h
414 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} clean )
416 utils_distclean
: $(DIR_PREFIX
)utils
$(CD_VERSION
)/config.h
417 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} distclean )
420 geda
: geda
$(CD_VERSION
)/configure \
421 geda
$(CD_VERSION
)/config.h \
422 geda
$(CD_VERSION
)/src
/geda
425 geda_install
: geda
$(CD_VERSION
)/configure \
426 geda
$(CD_VERSION
)/config.h \
427 geda
$(CD_VERSION
)/src
/geda
428 ( cd geda
$(CD_VERSION
); ${MAKE} install )
430 geda_uninstall
: geda
$(CD_VERSION
)/config.h
431 ( cd geda
$(CD_VERSION
); ${MAKE} uninstall )
433 geda_config
: geda
$(CD_VERSION
)/configure
434 ( cd geda
$(CD_VERSION
); \
435 .
/configure
--prefix=$(prefix) $(opts
) )
438 ( cd geda
$(CD_VERSION
); aclocal
; autoconf
; automake
)
441 ( cd geda
$(CD_VERSION
); aclocal
; autoconf
; \
442 automake
--include-deps
)
445 ( cd geda
$(CD_VERSION
); ${MAKE} dist )
448 ( cd geda
$(CD_VERSION
); ${MAKE} distcheck
)
450 geda_maint
: geda
$(CD_VERSION
)/config.h
451 ( cd geda
$(CD_VERSION
); ${MAKE} maintainer-clean
)
453 geda_clean
: geda
$(CD_VERSION
)/config.h
454 ( cd geda
$(CD_VERSION
); ${MAKE} clean )
456 geda_distclean
: geda
$(CD_VERSION
)/config.h
457 ( cd geda
$(CD_VERSION
); ${MAKE} distclean )
460 setup
: $(DIR_PREFIX
)setup
$(CD_VERSION
)/configure \
461 $(DIR_PREFIX
)setup
$(CD_VERSION
)/config.h \
462 $(DIR_PREFIX
)setup
$(CD_VERSION
)/src
/setup
465 # Do not install the setup program, just build it
466 setup_install
: $(DIR_PREFIX
)setup
$(CD_VERSION
)/configure \
467 $(DIR_PREFIX
)setup
$(CD_VERSION
)/config.h \
468 $(DIR_PREFIX
)setup
$(CD_VERSION
)/src
/setup
469 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} )
471 # No reason to do this, if you are not installing setup
472 setup_uninstall
: $(DIR_PREFIX
)setup
$(CD_VERSION
)/config.h
473 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} )
475 setup_config
: $(DIR_PREFIX
)setup
$(CD_VERSION
)/configure
476 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); \
477 .
/configure
--prefix=$(prefix) $(opts
) )
480 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); aclocal
; autoconf
; automake
)
483 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); aclocal
; autoconf
; \
484 automake
--include-deps
)
487 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} dist )
490 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} distcheck
)
492 setup_maint
: $(DIR_PREFIX
)setup
$(CD_VERSION
)/config.h
493 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} maintainer-clean
)
495 setup_clean
: $(DIR_PREFIX
)setup
$(CD_VERSION
)/config.h
496 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} clean )
498 setup_distclean
: $(DIR_PREFIX
)setup
$(CD_VERSION
)/config.h
499 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} distclean )
501 # libgeda (has no $(DIR_PREFIX)
502 libgeda
: libgeda
$(CD_VERSION
)/configure \
503 libgeda
$(CD_VERSION
)/config.h \
504 libgeda
$(CD_VERSION
)/src
/.libs
/libgeda.a
505 @echo libgeda Installed
507 libgeda_maint
: libgeda
$(CD_VERSION
)/config.h
508 ( cd libgeda
$(CD_VERSION
); ${MAKE} maintainer-clean
)
510 libgeda_clean
: libgeda
$(CD_VERSION
)/config.h
511 ( cd libgeda
$(CD_VERSION
); ${MAKE} clean )
513 libgeda_distclean
: libgeda
$(CD_VERSION
)/config.h
514 ( cd libgeda
$(CD_VERSION
); ${MAKE} distclean )
516 libgeda_proto
: libgeda
$(CD_VERSION
)/config.h
517 ( cd libgeda
$(CD_VERSION
)/src
; ${MAKE} proto
)
519 libgeda_config
: libgeda
$(CD_VERSION
)/configure
520 ( cd libgeda
$(CD_VERSION
); .
/configure
--prefix=$(prefix) $(opts
) )
523 ( cd libgeda
$(CD_VERSION
); aclocal
; autoconf
; automake
)
526 ( cd libgeda
$(CD_VERSION
)/src
; ${MAKE} src
)
529 ( cd libgeda
$(CD_VERSION
); aclocal
; autoconf
; \
530 automake
--include-deps
)
533 ( cd libgeda
$(CD_VERSION
); ${MAKE} dist )
536 ( cd libgeda
$(CD_VERSION
); ${MAKE} distcheck
)
538 libgeda_uninstall
: libgeda
$(CD_VERSION
)/config.h
539 ( cd libgeda
$(CD_VERSION
); ${MAKE} uninstall )
541 libgeda_install
: libgeda
$(CD_VERSION
)/configure \
542 libgeda
$(CD_VERSION
)/config.h
543 ( cd libgeda
$(CD_VERSION
); ${MAKE} install )
546 docs
: $(DIR_PREFIX
)docs
$(CD_VERSION
)/configure \
547 $(DIR_PREFIX
)docs
$(CD_VERSION
)/Makefile \
548 $(DIR_PREFIX
)docs
$(CD_VERSION
)/attributes
/attributes.pdf
551 docs_install
: $(DIR_PREFIX
)docs
$(CD_VERSION
)/configure \
552 $(DIR_PREFIX
)docs
$(CD_VERSION
)/Makefile \
553 $(DIR_PREFIX
)docs
$(CD_VERSION
)/attributes
/attributes.pdf
554 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} install )
556 docs_uninstall
: $(DIR_PREFIX
)docs
$(CD_VERSION
)/Makefile
557 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} uninstall )
559 docs_config
: $(DIR_PREFIX
)docs
$(CD_VERSION
)/configure
560 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); \
561 .
/configure
--prefix=$(prefix) $(opts
) )
564 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); aclocal
; autoconf
; automake
)
567 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); aclocal
; autoconf
; \
568 automake
--include-deps
)
571 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} dist )
574 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} distcheck
)
576 docs_maint
: $(DIR_PREFIX
)docs
$(CD_VERSION
)/Makefile
577 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} maintainer-clean
)
579 docs_clean
: $(DIR_PREFIX
)docs
$(CD_VERSION
)/Makefile
580 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} clean )
582 docs_distclean
: $(DIR_PREFIX
)docs
$(CD_VERSION
)/Makefile
583 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} distclean )
586 examples
: $(DIR_PREFIX
)examples
$(CD_VERSION
)/configure \
587 $(DIR_PREFIX
)examples
$(CD_VERSION
)/Makefile
590 examples_install
: $(DIR_PREFIX
)examples
$(CD_VERSION
)/configure \
591 $(DIR_PREFIX
)examples
$(CD_VERSION
)/Makefile
592 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); ${MAKE} install )
594 examples_uninstall
: $(DIR_PREFIX
)examples
$(CD_VERSION
)/Makefile
595 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); ${MAKE} uninstall )
597 examples_config
: $(DIR_PREFIX
)examples
$(CD_VERSION
)/configure
598 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); \
599 .
/configure
--prefix=$(prefix) $(opts
) )
602 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); aclocal
; autoconf
; automake
)
604 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); aclocal
; autoconf
; \
605 automake
--include-deps
)
608 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); ${MAKE} dist )
611 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); ${MAKE} distcheck
)
613 examples_maint
: $(DIR_PREFIX
)examples
$(CD_VERSION
)/Makefile
614 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); ${MAKE} maintainer-clean
)
616 examples_clean
: $(DIR_PREFIX
)examples
$(CD_VERSION
)/Makefile
617 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); ${MAKE} clean )
619 examples_distclean
: $(DIR_PREFIX
)examples
$(CD_VERSION
)/Makefile
620 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); ${MAKE} distclean )
622 ############################################################################
623 # Configure related targets
624 ############################################################################
626 libgeda
$(CD_VERSION
)/config.h
:
627 ( cd libgeda
$(CD_VERSION
); .
/configure
--prefix=$(prefix) $(opts
) )
629 libgeda
$(CD_VERSION
)/configure
:
630 ( cd libgeda
$(CD_VERSION
); aclocal
; autoconf
; automake
)
632 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/config.h
:
633 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); \
634 .
/configure
--prefix=$(prefix) $(opts
) )
636 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/configure
:
637 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); aclocal
; autoconf
; automake
)
639 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/config.h
:
640 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); \
641 .
/configure
--prefix=$(prefix) $(opts
) )
643 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/configure
:
644 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); aclocal
; autoconf
; automake
)
646 $(DIR_PREFIX
)utils
$(CD_VERSION
)/config.h
:
647 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); \
648 .
/configure
--prefix=$(prefix) $(opts
) )
650 $(DIR_PREFIX
)utils
$(CD_VERSION
)/configure
:
651 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); aclocal
; autoconf
; automake
)
653 geda
$(CD_VERSION
)/config.h
:
654 ( cd geda
$(CD_VERSION
); .
/configure
--prefix=$(prefix) $(opts
) )
656 geda
$(CD_VERSION
)/configure
:
657 ( cd geda
$(CD_VERSION
); aclocal
; autoconf
; automake
)
659 $(DIR_PREFIX
)setup
$(CD_VERSION
)/config.h
:
660 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); \
661 .
/configure
--prefix=$(prefix) $(opts
) )
663 $(DIR_PREFIX
)setup
$(CD_VERSION
)/configure
:
664 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); aclocal
; autoconf
; automake
)
666 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/config.h
:
667 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); \
668 .
/configure
--prefix=$(prefix) $(opts
) )
670 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/configure
:
671 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); aclocal
; autoconf
; automake
)
672 $(DIR_PREFIX
)symbols
$(CD_VERSION
)/system-commonrc
:
673 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); \
674 .
/configure
--prefix=$(prefix) $(opts
) )
676 $(DIR_PREFIX
)symbols
$(CD_VERSION
)/Makefile
:
677 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); \
678 .
/configure
--prefix=$(prefix) $(opts
) )
680 $(DIR_PREFIX
)symbols
$(CD_VERSION
)/configure
:
681 ( cd
$(DIR_PREFIX
)symbols
$(CD_VERSION
); aclocal
; autoconf
; automake
)
683 $(DIR_PREFIX
)docs
$(CD_VERSION
)/Makefile
:
684 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); \
685 .
/configure
--prefix=$(prefix) $(opts
) )
687 $(DIR_PREFIX
)docs
$(CD_VERSION
)/configure
:
688 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); aclocal
; autoconf
; automake
)
690 $(DIR_PREFIX
)examples
$(CD_VERSION
)/Makefile
:
691 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); \
692 .
/configure
--prefix=$(prefix) $(opts
) )
694 $(DIR_PREFIX
)examples
$(CD_VERSION
)/configure
:
695 ( cd
$(DIR_PREFIX
)examples
$(CD_VERSION
); aclocal
; autoconf
; automake
)
697 ############################################################################
698 # Executable related related targets
699 ############################################################################
701 $(DIR_PREFIX
)gschem
$(CD_VERSION
)/src
/gschem
:
702 ( cd
$(DIR_PREFIX
)gschem
$(CD_VERSION
); ${MAKE} )
704 $(DIR_PREFIX
)gsymcheck
$(CD_VERSION
)/src
/gsymcheck
:
705 ( cd
$(DIR_PREFIX
)gsymcheck
$(CD_VERSION
); ${MAKE} )
707 $(DIR_PREFIX
)gnetlist
$(CD_VERSION
)/src
/gnetlist
:
708 ( cd
$(DIR_PREFIX
)gnetlist
$(CD_VERSION
); ${MAKE} )
710 $(DIR_PREFIX
)utils
$(CD_VERSION
)/src
/gmk_sym
:
711 ( cd
$(DIR_PREFIX
)utils
$(CD_VERSION
); ${MAKE} )
713 geda
$(CD_VERSION
)/src
/geda
:
714 ( cd geda
$(CD_VERSION
); ${MAKE} )
716 $(DIR_PREFIX
)setup
$(CD_VERSION
)/src
/setup
:
717 ( cd
$(DIR_PREFIX
)setup
$(CD_VERSION
); ${MAKE} )
719 $(DIR_PREFIX
)docs
$(CD_VERSION
)/attributes
/attributes.pdf
:
720 ( cd
$(DIR_PREFIX
)docs
$(CD_VERSION
); ${MAKE} )
722 libgeda
$(CD_VERSION
)/src
/.libs
/libgeda.a
:
723 ( cd libgeda
$(CD_VERSION
); ${MAKE} install )
725 ############################################################################
726 # Script related related targets
727 ############################################################################
730 ( cd libgeda
$(CD_VERSION
); ${MAKE} libgeda-pc-install
)