Bumped versions to 1.1.2/20070818/30:2:0 for the next development snapshot
[geda-gaf/whiteaudio.git] / Makefile
blob35376a13b60fb38a037c8a03d90b13faee3b1c69
2 # gEDA/gaf Toplevel Makefile
6 # These variables hold the the master version of gEDA/gaf.
7 # Change this to the real version of the distribution. However
8 # you still need to update all the configure.ac[.in] scripts; this
9 # can be accomplished by running ./update-versions.sh with the correct
10 # arguments.
12 DOTTED_VERSION=1.1.2
13 DATE_VERSION=20070818
16 # Use this when you are building the repository version
18 CD_VERSION=
19 DIR_PREFIX=
22 # Use this when you are building the Released version (comment out above)
24 #CD_VERSION=-$(DOTTED_VERSION)
25 #DIR_PREFIX=geda-
28 # Set this to the location where you want to install gEDA/gaf
30 prefix?=$(HOME)/geda
33 # You can set any global options you want here to be passed to the
34 # individual ./configure scripts
36 #opts=
39 # Set this to the shell that you want the various commands to run in.
40 # For most people the default should work just fine.
42 SHELL=/bin/sh
44 ############################################################################
45 # Basic targets
46 ############################################################################
48 notarget:
49 @echo $(VERSION) $(CD_VERSION) $(DIR_PREFIX)
50 @echo "gEDA Toplevel Makefile"
51 @echo "This Makefile requires libgeda, symbols, gschem, gnetlist,"
52 @echo "gattrib, gsymcheck, utils, docs, and examples source tarball packages"
53 @echo "untarred in this: `pwd` directory"
54 @echo ""
55 @echo "Type:"
56 @echo ""
57 @echo "${MAKE} install Installs gEDA/gaf into $(prefix)"
58 @echo "${MAKE} uninstall Uninstall gEDA/gaf from $(prefix)"
59 @echo "${MAKE} clean Simple clean only (remove all .o and bins)"
60 @echo "${MAKE} open Opens up all gEDA/gaf tarballs in base directory"
61 @echo ""
62 @echo "These targets are primarily used by the developers:"
63 @echo "${MAKE} reconfig Recreate ./configure (and all Makefiles)"
64 @echo "${MAKE} maint Total maintenance clean"
65 @echo "${MAKE} distcheck Create distribution (using make distcheck)"
66 @echo "${MAKE} distconfig Create dist ./configure (and all Makefiles)"
67 @echo "${MAKE} distclean Does a make distclean in each subdir"
68 @echo "${MAKE} config Just do the ./configure --prefix=${prefix}"
69 @echo "${MAKE} proto Recreate all prototype.h files"
70 @echo "${MAKE} dist Create distribution (using make dist)"
71 @echo "${MAKE} src Create all *.c files from *.nw files"
72 @echo "${MAKE} all Just build. Do not use! Run make install"
73 @echo ""
74 @echo ""
75 @echo "---------------------------READ THIS---------------------------"
76 @echo "Before executing any of the above targets, set the below shell"
77 @echo "variables. The build process _will fail_ if you do not set"
78 @echo "these variables! You will also need to set these variables to"
79 @echo "run the programs."
80 @echo ""
81 @echo "gEDA/gaf will be installed into ${prefix}"
82 @echo ""
83 @echo "For vanilla bourne shells:"
84 @echo LD_LIBRARY_PATH=${prefix}/lib:\$$LD_LIBRARY_PATH
85 @echo "export LD_LIBRARY_PATH"
86 @echo PATH=${prefix}/bin:\$$\{PATH\}
87 @echo "export PATH"
88 @echo PKG_CONFIG_PATH=${prefix}/lib/pkgconfig:\$$PKG_CONFIG_PATH
89 @echo "export PKG_CONFIG_PATH"
90 @echo ""
91 @echo "For bash:"
92 @echo export LD_LIBRARY_PATH=${prefix}/lib:\$$LD_LIBRARY_PATH
93 @echo export PATH=${prefix}/bin:\$$\{PATH\}
94 @echo export PKG_CONFIG_PATH=${prefix}/lib/pkgconfig:\$$PKG_CONFIG_PATH
95 @echo ""
96 @echo "For csh/tcsh shell:"
97 @echo setenv LD_LIBRARY_PATH ${prefix}/lib:\$$LD_LIBRARY_PATH
98 @echo setenv PATH ${prefix}/bin:\$$PATH
99 @echo setenv PKG_CONFIG_PATH ${prefix}/lib/pkgconfig:\$$PKG_CONFIG_PATH
100 @echo ""
101 @echo "---------------------------READ THIS---------------------------"
103 ##----------------------------------------------------------------------
104 ## SDB notes: To create a gEDA distribution, do this (in this order):
105 ## 1. make maint
106 ## 2. make reconfig <-- This is entry point when you download from CVS
107 ## (i.e. start with "make reconfig")
108 ## 3. make config
109 ## ---> At this point you can do "make install" if you want
110 ## to install gEDA on your machine.
111 ## 4. make dist
112 ## "Make dist" will leave tarballs of the various parts of the suite in
113 ## the base directory. Note that you have to change the $VERSION
114 ## of each program in the configure.ac in each directory. In principle,
115 ## you can check that "make dist" worked by doing:
116 ## 5. make distcheck
117 ## "make distcheck" will create a set of tarballs and untar, configure,
118 ## compile and run make check in each directory.
120 ## Note that you need to have the autotools installed; if you are not a
121 ## developer or you don't know what the autotools are, you probably
122 ## shouldn't do this. You're forewarned!
123 ##----------------------------------------------------------------------
125 # This installs libgeda and symbols and just builds gschem and gnetlist
126 all: libgeda symbols gschem gnetlist gattrib gsymcheck utils docs examples
128 # This builds and installs all of gEDA/gaf
129 install: symbols_install libgeda_install gschem_install gnetlist_install \
130 gattrib_install gsymcheck_install \
131 utils_install docs_install examples_install
133 # This uninstalls all of gEDA/gaf
134 uninstall: utils_uninstall gsymcheck_uninstall gattrib_uninstall \
135 gnetlist_uninstall gschem_uninstall symbols_uninstall \
136 libgeda_uninstall docs_uninstall examples_uninstall
138 # This target assumes you have all .tar.gz files present in your local directory.
139 # It opens them up using tar -zxvf. Afterwards you can do
140 # "make install" to install your gEDA distribution.
141 open: docs_tarball \
142 examples_tarball \
143 gattrib_tarball \
144 gnetlist_tarball \
145 gschem_tarball \
146 gsymcheck_tarball \
147 symbols_tarball \
148 utils_tarball \
149 libgeda_tarball
151 # This does a maintainer-clean removes EVERYTHING that's config/built
152 maint: libgeda_maint symbols_maint gschem_maint gnetlist_maint gattrib_maint \
153 gsymcheck_maint utils_maint docs_maint \
154 examples_maint
156 # This does a plain clean
157 clean: libgeda_clean symbols_clean gschem_clean gnetlist_clean gattrib_clean \
158 gsymcheck_clean utils_clean docs_clean \
159 examples_clean
161 # This does a dist clean
162 distclean: libgeda_distclean symbols_distclean gschem_distclean \
163 gnetlist_distclean gattrib_distclean gsymcheck_distclean \
164 utils_distclean docs_distclean examples_distclean
166 # This just does the appropriate ./configure --prefix=...
167 config: libgeda_config symbols_config gschem_config gnetlist_config \
168 gattrib_config gsymcheck_config utils_config docs_config \
169 examples_config
171 # This recreates all ./configure scripts and Makefile.in files
172 reconfig: libgeda_reconfig symbols_reconfig gschem_reconfig gnetlist_reconfig \
173 gattrib_reconfig gsymcheck_reconfig utils_reconfig \
174 docs_reconfig examples_reconfig
176 # This creates all *.c files from *.nw files
177 src: libgeda_src gschem_src
179 # This recreates all ./configure scripts and Makefile.in files ready
180 # for distribution (removes dependency checking)
181 distconfig: libgeda_distconfig symbols_distconfig gschem_distconfig \
182 gnetlist_distconfig gattrib_distconfig gsymcheck_distconfig \
183 utils_distconfig docs_distconfig \
184 examples_distconfig
186 dist: libgeda_dist symbols_dist gschem_dist \
187 gnetlist_dist gattrib_dist gsymcheck_dist utils_dist \
188 docs_dist examples_dist
189 mv -f libgeda/libgeda*.tar.gz .
190 mv -f symbols/geda-symbols*.tar.gz .
191 mv -f gschem/geda-gschem*.tar.gz .
192 mv -f gnetlist/geda-gnetlist*.tar.gz .
193 mv -f gattrib/geda-gattrib*.tar.gz .
194 mv -f gsymcheck/geda-gsymcheck*.tar.gz .
195 mv -f utils/geda-utils*.tar.gz .
196 mv -f docs/geda-docs*.tar.gz .
197 mv -f examples/geda-examples*.tar.gz .
199 distcheck: libgeda_distcheck symbols_distcheck gschem_distcheck \
200 gnetlist_distcheck gattrib_distcheck gsymcheck_distcheck \
201 utils_distcheck docs_distcheck examples_distcheck
202 mv -f libgeda/libgeda*.tar.gz .
203 mv -f symbols/geda-symbols*.tar.gz .
204 mv -f gschem/geda-gschem*.tar.gz .
205 mv -f gnetlist/geda-gnetlist*.tar.gz .
206 mv -f gattrib/geda-gattrib*.tar.gz .
207 mv -f gsymcheck/geda-gsymcheck*.tar.gz .
208 mv -f utils/geda-utils*.tar.gz .
209 mv -f docs/geda-docs*.tar.gz .
210 mv -f examples/geda-examples*.tar.gz .
212 # This recreates all ./configure scripts and Makefile.in files
213 proto: libgeda_proto gschem_proto gnetlist_proto gattrib_proto gsymcheck_proto
215 ############################################################################
216 # Midlevel targets
217 ############################################################################
219 # Symbols
220 symbols: $(DIR_PREFIX)symbols$(CD_VERSION)/configure
221 @echo symbols Installed
223 symbols_maint: $(DIR_PREFIX)symbols$(CD_VERSION)/geda-font.scm
224 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ${MAKE} maintainer-clean )
226 symbols_clean: $(DIR_PREFIX)symbols$(CD_VERSION)/geda-font.scm
227 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ${MAKE} clean )
229 symbols_distclean: $(DIR_PREFIX)symbols$(CD_VERSION)/geda-font.scm
230 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ${MAKE} distclean )
232 symbols_install: $(DIR_PREFIX)symbols$(CD_VERSION)/configure \
233 $(DIR_PREFIX)symbols$(CD_VERSION)/Makefile
234 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ${MAKE} install )
236 symbols_uninstall: $(DIR_PREFIX)symbols$(CD_VERSION)/geda-font.scm
237 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ${MAKE} uninstall )
239 symbols_config: $(DIR_PREFIX)symbols$(CD_VERSION)/configure
240 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); \
241 ./configure --prefix=$(prefix) $(opts) )
243 symbols_reconfig:
244 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ./autogen.sh )
246 symbols_distconfig:
247 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ./autogen.sh )
249 symbols_dist:
250 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ${MAKE} dist )
252 symbols_distcheck: $(DIR_PREFIX)symbols$(CD_VERSION)/configure \
253 $(DIR_PREFIX)symbols$(CD_VERSION)/Makefile
254 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ${MAKE} distcheck )
256 # gschem
257 gschem: $(DIR_PREFIX)gschem$(CD_VERSION)/configure \
258 $(DIR_PREFIX)gschem$(CD_VERSION)/config.h \
259 $(DIR_PREFIX)gschem$(CD_VERSION)/src/gschem
260 @echo gschem Built
262 gschem_install: $(DIR_PREFIX)gschem$(CD_VERSION)/configure \
263 $(DIR_PREFIX)gschem$(CD_VERSION)/config.h \
264 $(DIR_PREFIX)gschem$(CD_VERSION)/src/gschem
265 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} install )
267 gschem_uninstall: $(DIR_PREFIX)gschem$(CD_VERSION)/config.h
268 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} uninstall )
270 gschem_config: libgeda-pc-install \
271 $(DIR_PREFIX)gschem$(CD_VERSION)/configure
272 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); \
273 ./configure --prefix=$(prefix) $(opts) )
275 gschem_reconfig:
276 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ./autogen.sh )
278 gschem_src:
279 ( cd $(DIR_PREFIX)gschem$(CD_VERSION)/src; ${MAKE} src )
281 gschem_distconfig:
282 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ./autogen.sh )
284 gschem_dist:
285 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} dist )
287 gschem_distcheck: $(DIR_PREFIX)gschem$(CD_VERSION)/configure \
288 $(DIR_PREFIX)gschem$(CD_VERSION)/config.h
289 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} distcheck )
291 gschem_maint: $(DIR_PREFIX)gschem$(CD_VERSION)/config.h
292 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} maintainer-clean )
294 gschem_clean: $(DIR_PREFIX)gschem$(CD_VERSION)/config.h
295 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} clean )
297 gschem_distclean: $(DIR_PREFIX)gschem$(CD_VERSION)/config.h
298 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} distclean )
300 gschem_proto: $(DIR_PREFIX)gschem$(CD_VERSION)/config.h
301 ( cd $(DIR_PREFIX)gschem$(CD_VERSION)/src; ${MAKE} proto )
303 # gnetlist
304 gnetlist: $(DIR_PREFIX)gnetlist$(CD_VERSION)/configure \
305 $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h \
306 $(DIR_PREFIX)gnetlist$(CD_VERSION)/src/gnetlist
307 @echo gnetlist Built
309 gnetlist_install: $(DIR_PREFIX)gnetlist$(CD_VERSION)/configure \
310 $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h \
311 $(DIR_PREFIX)gnetlist$(CD_VERSION)/src/gnetlist
312 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} install )
314 gnetlist_uninstall: $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h
315 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} uninstall )
317 gnetlist_maint: $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h
318 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} maintainer-clean )
320 gnetlist_clean: $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h
321 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} clean )
323 gnetlist_distclean: $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h
324 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} distclean )
326 gnetlist_proto: $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h
327 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION)/src; ${MAKE} proto )
329 gnetlist_config: libgeda-pc-install \
330 $(DIR_PREFIX)gnetlist$(CD_VERSION)/configure
331 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); \
332 ./configure --prefix=$(prefix) $(opts) )
334 gnetlist_reconfig:
335 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ./autogen.sh )
337 gnetlist_distconfig:
338 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ./autogen.sh )
340 gnetlist_dist:
341 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} dist )
343 gnetlist_distcheck: $(DIR_PREFIX)gnetlist$(CD_VERSION)/configure \
344 $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h
345 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} distcheck )
347 # gattrib
348 gattrib: $(DIR_PREFIX)gattrib$(CD_VERSION)/configure \
349 $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h \
350 $(DIR_PREFIX)gattrib$(CD_VERSION)/src/gattrib
351 @echo gattrib Built
353 gattrib_install: $(DIR_PREFIX)gattrib$(CD_VERSION)/configure \
354 $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h \
355 $(DIR_PREFIX)gattrib$(CD_VERSION)/src/gattrib
356 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} install )
358 gattrib_uninstall: $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h
359 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} uninstall )
361 gattrib_maint: $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h
362 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} maintainer-clean )
364 gattrib_clean: $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h
365 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} clean )
367 gattrib_distclean: $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h
368 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} distclean )
370 gattrib_proto: $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h
371 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION)/src; ${MAKE} proto )
373 gattrib_config: libgeda-pc-install \
374 $(DIR_PREFIX)gattrib$(CD_VERSION)/configure
375 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); \
376 ./configure --prefix=$(prefix) $(opts) )
378 gattrib_reconfig:
379 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ./autogen.sh )
381 gattrib_distconfig:
382 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ./autogen.sh )
384 gattrib_dist:
385 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} dist )
387 gattrib_distcheck: $(DIR_PREFIX)gattrib$(CD_VERSION)/configure \
388 $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h
389 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} distcheck )
391 # gsymcheck
392 gsymcheck: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/configure \
393 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h \
394 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/src/gsymcheck
395 @echo gsymcheck Built
397 gsymcheck_install: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/configure \
398 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h \
399 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/src/gsymcheck
400 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} install )
402 gsymcheck_uninstall: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h
403 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} uninstall )
405 gsymcheck_config: libgeda-pc-install \
406 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/configure
407 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); \
408 ./configure --prefix=$(prefix) $(opts) )
410 gsymcheck_reconfig:
411 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ./autogen.sh )
413 gsymcheck_distconfig:
414 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ./autogen.sh )
416 gsymcheck_dist:
417 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} dist )
419 gsymcheck_distcheck: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/configure \
420 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h
421 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} distcheck )
423 gsymcheck_maint: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h
424 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} maintainer-clean )
426 gsymcheck_clean: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h
427 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} clean )
429 gsymcheck_distclean: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h
430 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} distclean )
432 gsymcheck_proto: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h
433 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION)/src; ${MAKE} proto )
435 # utils
436 utils: $(DIR_PREFIX)utils$(CD_VERSION)/configure \
437 $(DIR_PREFIX)utils$(CD_VERSION)/config.h \
438 $(DIR_PREFIX)utils$(CD_VERSION)/src/gmk_sym
439 @echo utils Built
441 utils_install: $(DIR_PREFIX)utils$(CD_VERSION)/configure \
442 $(DIR_PREFIX)utils$(CD_VERSION)/config.h \
443 $(DIR_PREFIX)utils$(CD_VERSION)/src/gmk_sym
444 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} install )
446 utils_uninstall: $(DIR_PREFIX)utils$(CD_VERSION)/config.h
447 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} uninstall )
449 utils_config: libgeda-pc-install \
450 $(DIR_PREFIX)utils$(CD_VERSION)/configure
451 ( cd $(DIR_PREFIX)utils$(CD_VERSION); \
452 ./configure --prefix=$(prefix) $(opts) )
454 utils_reconfig:
455 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ./autogen.sh )
457 utils_distconfig:
458 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ./autogen.sh )
460 utils_dist:
461 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} dist )
463 utils_distcheck: $(DIR_PREFIX)utils$(CD_VERSION)/configure \
464 $(DIR_PREFIX)utils$(CD_VERSION)/config.h
465 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} distcheck )
467 utils_maint: $(DIR_PREFIX)utils$(CD_VERSION)/config.h
468 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} maintainer-clean )
470 utils_clean: $(DIR_PREFIX)utils$(CD_VERSION)/config.h
471 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} clean )
473 utils_distclean: $(DIR_PREFIX)utils$(CD_VERSION)/config.h
474 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} distclean )
476 # geda
477 geda: geda$(CD_VERSION)/configure \
478 geda$(CD_VERSION)/config.h \
479 geda$(CD_VERSION)/src/geda
480 @echo geda Built
482 geda_install: geda$(CD_VERSION)/configure \
483 geda$(CD_VERSION)/config.h \
484 geda$(CD_VERSION)/src/geda
485 ( cd geda$(CD_VERSION); ${MAKE} install )
487 geda_uninstall: geda$(CD_VERSION)/config.h
488 ( cd geda$(CD_VERSION); ${MAKE} uninstall )
490 geda_config: geda$(CD_VERSION)/configure
491 ( cd geda$(CD_VERSION); \
492 ./configure --prefix=$(prefix) $(opts) )
494 geda_reconfig:
495 ( cd geda$(CD_VERSION); ./autogen.sh )
497 geda_distconfig:
498 ( cd geda$(CD_VERSION); ./autogen.sh )
500 geda_dist:
501 ( cd geda$(CD_VERSION); ${MAKE} dist )
503 geda_distcheck: geda$(CD_VERSION)/configure \
504 geda$(CD_VERSION)/config.h
505 ( cd geda$(CD_VERSION); ${MAKE} distcheck )
507 geda_maint: geda$(CD_VERSION)/config.h
508 ( cd geda$(CD_VERSION); ${MAKE} maintainer-clean )
510 geda_clean: geda$(CD_VERSION)/config.h
511 ( cd geda$(CD_VERSION); ${MAKE} clean )
513 geda_distclean: geda$(CD_VERSION)/config.h
514 ( cd geda$(CD_VERSION); ${MAKE} distclean )
516 # setup
517 setup: $(DIR_PREFIX)setup$(CD_VERSION)/configure \
518 $(DIR_PREFIX)setup$(CD_VERSION)/config.h \
519 $(DIR_PREFIX)setup$(CD_VERSION)/src/setup
520 @echo setup Built
522 # Do not install the setup program, just build it
523 setup_install: $(DIR_PREFIX)setup$(CD_VERSION)/configure \
524 $(DIR_PREFIX)setup$(CD_VERSION)/config.h \
525 $(DIR_PREFIX)setup$(CD_VERSION)/src/setup
526 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} )
528 # No reason to do this, if you are not installing setup
529 setup_uninstall: $(DIR_PREFIX)setup$(CD_VERSION)/config.h
530 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} )
532 setup_config: $(DIR_PREFIX)setup$(CD_VERSION)/configure
533 ( cd $(DIR_PREFIX)setup$(CD_VERSION); \
534 ./configure --prefix=$(prefix) $(opts) )
536 setup_reconfig:
537 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ./autogen.sh )
539 setup_distconfig:
540 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ./autogen.sh )
542 setup_dist:
543 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} dist )
545 setup_distcheck: $(DIR_PREFIX)setup$(CD_VERSION)/configure \
546 $(DIR_PREFIX)setup$(CD_VERSION)/config.h
547 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} distcheck )
549 setup_maint: $(DIR_PREFIX)setup$(CD_VERSION)/config.h
550 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} maintainer-clean )
552 setup_clean: $(DIR_PREFIX)setup$(CD_VERSION)/config.h
553 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} clean )
555 setup_distclean: $(DIR_PREFIX)setup$(CD_VERSION)/config.h
556 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} distclean )
558 # libgeda (has no $(DIR_PREFIX)
559 libgeda: libgeda$(CD_VERSION)/configure \
560 libgeda$(CD_VERSION)/config.h \
561 libgeda$(CD_VERSION)/src/.libs/libgeda.a
562 @echo libgeda Installed
564 libgeda_maint: libgeda$(CD_VERSION)/config.h
565 ( cd libgeda$(CD_VERSION); ${MAKE} maintainer-clean )
567 libgeda_clean: libgeda$(CD_VERSION)/config.h
568 ( cd libgeda$(CD_VERSION); ${MAKE} clean )
570 libgeda_distclean: libgeda$(CD_VERSION)/config.h
571 ( cd libgeda$(CD_VERSION); ${MAKE} distclean )
573 libgeda_proto: libgeda$(CD_VERSION)/config.h
574 ( cd libgeda$(CD_VERSION)/src; ${MAKE} proto )
576 libgeda_config: libgeda$(CD_VERSION)/configure
577 ( cd libgeda$(CD_VERSION); ./configure --prefix=$(prefix) $(opts) )
579 libgeda_reconfig:
580 ( cd libgeda$(CD_VERSION); ./autogen.sh )
582 libgeda_src:
583 ( cd libgeda$(CD_VERSION)/src; ${MAKE} src )
585 libgeda_distconfig:
586 ( cd libgeda$(CD_VERSION); ./autogen.sh )
588 libgeda_dist:
589 ( cd libgeda$(CD_VERSION); ${MAKE} dist )
591 libgeda_distcheck: libgeda$(CD_VERSION)/configure \
592 libgeda$(CD_VERSION)/config.h
593 ( cd libgeda$(CD_VERSION); ${MAKE} distcheck )
595 libgeda_uninstall: libgeda$(CD_VERSION)/config.h
596 ( cd libgeda$(CD_VERSION); ${MAKE} uninstall )
598 libgeda_install: libgeda$(CD_VERSION)/configure \
599 libgeda$(CD_VERSION)/config.h
600 ( cd libgeda$(CD_VERSION); ${MAKE} install )
602 # docs
603 docs: $(DIR_PREFIX)docs$(CD_VERSION)/configure \
604 $(DIR_PREFIX)docs$(CD_VERSION)/Makefile \
605 $(DIR_PREFIX)docs$(CD_VERSION)/attributes/attributes.pdf
606 @echo docs Built
608 docs_install: $(DIR_PREFIX)docs$(CD_VERSION)/configure \
609 $(DIR_PREFIX)docs$(CD_VERSION)/Makefile \
610 $(DIR_PREFIX)docs$(CD_VERSION)/attributes/attributes.pdf
611 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} install )
613 docs_uninstall: $(DIR_PREFIX)docs$(CD_VERSION)/Makefile
614 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} uninstall )
616 docs_config: $(DIR_PREFIX)docs$(CD_VERSION)/configure
617 ( cd $(DIR_PREFIX)docs$(CD_VERSION); \
618 ./configure --prefix=$(prefix) $(opts) )
620 docs_reconfig:
621 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ./autogen.sh )
623 docs_distconfig:
624 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ./autogen.sh )
626 docs_dist:
627 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} dist )
629 docs_distcheck: $(DIR_PREFIX)docs$(CD_VERSION)/configure \
630 $(DIR_PREFIX)docs$(CD_VERSION)/Makefile
631 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} distcheck )
633 docs_maint: $(DIR_PREFIX)docs$(CD_VERSION)/Makefile
634 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} maintainer-clean )
636 docs_clean: $(DIR_PREFIX)docs$(CD_VERSION)/Makefile
637 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} clean )
639 docs_distclean: $(DIR_PREFIX)docs$(CD_VERSION)/Makefile
640 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} distclean )
642 # examples
643 examples: $(DIR_PREFIX)examples$(CD_VERSION)/configure \
644 $(DIR_PREFIX)examples$(CD_VERSION)/Makefile
645 @echo examples Built
647 examples_install: $(DIR_PREFIX)examples$(CD_VERSION)/configure \
648 $(DIR_PREFIX)examples$(CD_VERSION)/Makefile
649 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ${MAKE} install )
651 examples_uninstall: $(DIR_PREFIX)examples$(CD_VERSION)/Makefile
652 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ${MAKE} uninstall )
654 examples_config: $(DIR_PREFIX)examples$(CD_VERSION)/configure
655 ( cd $(DIR_PREFIX)examples$(CD_VERSION); \
656 ./configure --prefix=$(prefix) $(opts) )
658 examples_reconfig:
659 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ./autogen.sh )
660 examples_distconfig:
661 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ./autogen.sh )
663 examples_dist:
664 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ${MAKE} dist )
666 examples_distcheck: $(DIR_PREFIX)examples$(CD_VERSION)/configure \
667 $(DIR_PREFIX)examples$(CD_VERSION)/Makefile
668 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ${MAKE} distcheck )
670 examples_maint: $(DIR_PREFIX)examples$(CD_VERSION)/Makefile
671 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ${MAKE} maintainer-clean )
673 examples_clean: $(DIR_PREFIX)examples$(CD_VERSION)/Makefile
674 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ${MAKE} clean )
676 examples_distclean: $(DIR_PREFIX)examples$(CD_VERSION)/Makefile
677 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ${MAKE} distclean )
679 ############################################################################
680 # Configure related targets
681 ############################################################################
683 libgeda$(CD_VERSION)/config.h:
684 ( cd libgeda$(CD_VERSION); ./configure --prefix=$(prefix) $(opts) )
686 libgeda$(CD_VERSION)/configure:
687 ( cd libgeda$(CD_VERSION); ./autogen.sh)
689 $(DIR_PREFIX)gschem$(CD_VERSION)/config.h:
690 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); \
691 ./configure --prefix=$(prefix) $(opts) )
693 $(DIR_PREFIX)gschem$(CD_VERSION)/configure:
694 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ./autogen.sh )
696 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h:
697 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); \
698 ./configure --prefix=$(prefix) $(opts) )
700 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/configure:
701 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ./autogen.sh )
703 $(DIR_PREFIX)utils$(CD_VERSION)/config.h:
704 ( cd $(DIR_PREFIX)utils$(CD_VERSION); \
705 ./configure --prefix=$(prefix) $(opts) )
707 $(DIR_PREFIX)utils$(CD_VERSION)/configure:
708 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ./autogen.sh )
710 geda$(CD_VERSION)/config.h:
711 ( cd geda$(CD_VERSION); ./configure --prefix=$(prefix) $(opts) )
713 geda$(CD_VERSION)/configure:
714 ( cd geda$(CD_VERSION); ./autogen.sh )
716 $(DIR_PREFIX)setup$(CD_VERSION)/config.h:
717 ( cd $(DIR_PREFIX)setup$(CD_VERSION); \
718 ./configure --prefix=$(prefix) $(opts) )
720 $(DIR_PREFIX)setup$(CD_VERSION)/configure:
721 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ./autogen.sh )
723 $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h:
724 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); \
725 ./configure --prefix=$(prefix) $(opts) )
727 $(DIR_PREFIX)gnetlist$(CD_VERSION)/configure:
728 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ./autogen.sh )
730 $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h:
731 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); \
732 ./configure --prefix=$(prefix) $(opts) )
734 $(DIR_PREFIX)gattrib$(CD_VERSION)/configure:
735 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ./autogen.sh )
737 $(DIR_PREFIX)symbols$(CD_VERSION)/geda-font.scm:
738 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); \
739 ./configure --prefix=$(prefix) $(opts) )
741 $(DIR_PREFIX)symbols$(CD_VERSION)/Makefile:
742 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); \
743 ./configure --prefix=$(prefix) $(opts) )
745 $(DIR_PREFIX)symbols$(CD_VERSION)/configure:
746 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ./autogen.sh )
748 $(DIR_PREFIX)docs$(CD_VERSION)/Makefile:
749 ( cd $(DIR_PREFIX)docs$(CD_VERSION); \
750 ./configure --prefix=$(prefix) $(opts) )
752 $(DIR_PREFIX)docs$(CD_VERSION)/configure:
753 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ./autogen.sh )
755 $(DIR_PREFIX)examples$(CD_VERSION)/Makefile:
756 ( cd $(DIR_PREFIX)examples$(CD_VERSION); \
757 ./configure --prefix=$(prefix) $(opts) )
759 $(DIR_PREFIX)examples$(CD_VERSION)/configure:
760 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ./autogen.sh )
762 ############################################################################
763 # Executable related related targets
764 ############################################################################
766 $(DIR_PREFIX)gschem$(CD_VERSION)/src/gschem:
767 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} )
769 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/src/gsymcheck:
770 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} )
772 $(DIR_PREFIX)gnetlist$(CD_VERSION)/src/gnetlist:
773 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} )
775 $(DIR_PREFIX)gattrib$(CD_VERSION)/src/gattrib:
776 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} )
778 $(DIR_PREFIX)utils$(CD_VERSION)/src/gmk_sym:
779 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} )
781 geda$(CD_VERSION)/src/geda:
782 ( cd geda$(CD_VERSION); ${MAKE} )
784 $(DIR_PREFIX)setup$(CD_VERSION)/src/setup:
785 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} )
787 $(DIR_PREFIX)docs$(CD_VERSION)/attributes/attributes.pdf:
788 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} )
790 libgeda$(CD_VERSION)/src/.libs/libgeda.a:
791 ( cd libgeda$(CD_VERSION); ${MAKE} install )
793 ############################################################################
794 # Script related related targets
795 ############################################################################
797 libgeda-pc-install:
798 ( cd libgeda$(CD_VERSION); ${MAKE} libgeda-pc-install )
801 ############################################################################
802 # Targets for opening up the tarballs
803 ############################################################################
805 geda_tarball: geda$(CD_VERSION).tar.gz
806 tar -zxvf geda$(CD_VERSION).tar.gz
808 docs_tarball: $(DIR_PREFIX)docs$(CD_VERSION).tar.gz
809 tar -zxvf $(DIR_PREFIX)docs$(CD_VERSION).tar.gz
811 examples_tarball: $(DIR_PREFIX)examples$(CD_VERSION).tar.gz
812 tar -zxvf $(DIR_PREFIX)examples$(CD_VERSION).tar.gz
814 gattrib_tarball: $(DIR_PREFIX)gattrib$(CD_VERSION).tar.gz
815 tar -zxvf $(DIR_PREFIX)gattrib$(CD_VERSION).tar.gz
817 gnetlist_tarball: $(DIR_PREFIX)gnetlist$(CD_VERSION).tar.gz
818 tar -zxvf $(DIR_PREFIX)gnetlist$(CD_VERSION).tar.gz
820 gschem_tarball: $(DIR_PREFIX)gschem$(CD_VERSION).tar.gz
821 tar -zxvf $(DIR_PREFIX)gschem$(CD_VERSION).tar.gz
823 gsymcheck_tarball: $(DIR_PREFIX)gsymcheck$(CD_VERSION).tar.gz
824 tar -zxvf $(DIR_PREFIX)gsymcheck$(CD_VERSION).tar.gz
826 setup_tarball: $(DIR_PREFIX)setup$(CD_VERSION).tar.gz
827 tar -zxvf $(DIR_PREFIX)setup$(CD_VERSION).tar.gz
829 symbols_tarball: $(DIR_PREFIX)symbols$(CD_VERSION).tar.gz
830 tar -zxvf $(DIR_PREFIX)symbols$(CD_VERSION).tar.gz
832 utils_tarball: $(DIR_PREFIX)utils$(CD_VERSION).tar.gz
833 tar -zxvf $(DIR_PREFIX)utils$(CD_VERSION).tar.gz
835 libgeda_tarball: libgeda$(CD_VERSION).tar.gz
836 tar -zxvf libgeda$(CD_VERSION).tar.gz