Take advantage of s_visit_page.
[geda-gaf/berndj.git] / Makefile
blob4d6490621c37efbb822ef38804616e7c6c13fce8
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.5.0
13 DATE_VERSION=20080706
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 # To disable the updating of the mime database and desktop database put the
37 # following flags into opt=
39 # --disable-update-mime-database
40 # --disable-update-desktop-database
42 opts=--with-xdgdatadir=$(HOME)/.local/share --with-kdedatadir=$(HOME)/.kde/share
45 # Set this to the shell that you want the various commands to run in.
46 # For most people the default should work just fine.
48 SHELL=/bin/sh
50 ############################################################################
51 # Basic targets
52 ############################################################################
54 notarget:
55 @echo $(VERSION) $(CD_VERSION) $(DIR_PREFIX)
56 @echo "gEDA Toplevel Makefile"
57 @echo "This Makefile requires libgeda, symbols, gschem, gnetlist,"
58 @echo "gattrib, gsymcheck, utils, docs, and examples source tarball packages"
59 @echo "untarred in this: `pwd` directory"
60 @echo ""
61 @echo "Type:"
62 @echo ""
63 @echo "${MAKE} install Installs gEDA/gaf into $(prefix)"
64 @echo "${MAKE} uninstall Uninstall gEDA/gaf from $(prefix)"
65 @echo "${MAKE} clean Simple clean only (remove all .o and bins)"
66 @echo "${MAKE} open Opens up all gEDA/gaf tarballs in base directory"
67 @echo ""
68 @echo "These targets are primarily used by the developers:"
69 @echo "${MAKE} reconfig Recreate ./configure (and all Makefiles)"
70 @echo "${MAKE} maint Total maintenance clean"
71 @echo "${MAKE} distcheck Create distribution (using make distcheck)"
72 @echo "${MAKE} distconfig Create dist ./configure (and all Makefiles)"
73 @echo "${MAKE} distclean Does a make distclean in each subdir"
74 @echo "${MAKE} config Just do the ./configure --prefix=${prefix}"
75 @echo "${MAKE} check Run check in all sub directories"
76 @echo "${MAKE} dist Create distribution (using make dist)"
77 @echo "${MAKE} src Create all *.c files from *.nw files"
78 @echo "${MAKE} all Just build. Do not use! Run make install"
79 @echo ""
80 @echo ""
81 @echo "---------------------------READ THIS---------------------------"
82 @echo "Before executing any of the above targets, set the below shell"
83 @echo "variables. The build process _will fail_ if you do not set"
84 @echo "these variables! You will also need to set these variables to"
85 @echo "run the programs."
86 @echo ""
87 @echo "gEDA/gaf will be installed into ${prefix}"
88 @echo ""
89 @echo "For vanilla bourne shells:"
90 @echo LD_LIBRARY_PATH=${prefix}/lib:\$$LD_LIBRARY_PATH
91 @echo "export LD_LIBRARY_PATH"
92 @echo PATH=${prefix}/bin:\$$\{PATH\}
93 @echo "export PATH"
94 @echo PKG_CONFIG_PATH=${prefix}/lib/pkgconfig:\$$PKG_CONFIG_PATH
95 @echo "export PKG_CONFIG_PATH"
96 @echo ""
97 @echo "For bash:"
98 @echo export LD_LIBRARY_PATH=${prefix}/lib:\$$LD_LIBRARY_PATH
99 @echo export PATH=${prefix}/bin:\$$\{PATH\}
100 @echo export PKG_CONFIG_PATH=${prefix}/lib/pkgconfig:\$$PKG_CONFIG_PATH
101 @echo ""
102 @echo "For csh/tcsh shell:"
103 @echo setenv LD_LIBRARY_PATH ${prefix}/lib:\$$LD_LIBRARY_PATH
104 @echo setenv PATH ${prefix}/bin:\$$PATH
105 @echo setenv PKG_CONFIG_PATH ${prefix}/lib/pkgconfig:\$$PKG_CONFIG_PATH
106 @echo ""
107 @echo "---------------------------READ THIS---------------------------"
109 ##----------------------------------------------------------------------
110 ## SDB notes: To create a gEDA distribution, do this (in this order):
111 ## 1. make maint
112 ## 2. make reconfig <-- This is entry point when you download from CVS
113 ## (i.e. start with "make reconfig")
114 ## 3. make config
115 ## ---> At this point you can do "make install" if you want
116 ## to install gEDA on your machine.
117 ## 4. make dist
118 ## "Make dist" will leave tarballs of the various parts of the suite in
119 ## the base directory. Note that you have to change the $VERSION
120 ## of each program in the configure.ac in each directory. In principle,
121 ## you can check that "make dist" worked by doing:
122 ## 5. make distcheck
123 ## "make distcheck" will create a set of tarballs and untar, configure,
124 ## compile and run make check in each directory.
126 ## Note that you need to have the autotools installed; if you are not a
127 ## developer or you don't know what the autotools are, you probably
128 ## shouldn't do this. You're forewarned!
129 ##----------------------------------------------------------------------
131 # This installs libgeda and symbols and just builds gschem and gnetlist
132 all: libgeda symbols gschem gnetlist gattrib gsymcheck utils docs examples
134 # This builds and installs all of gEDA/gaf
135 install: symbols_install libgeda_install gschem_install gnetlist_install \
136 gattrib_install gsymcheck_install \
137 utils_install docs_install examples_install
139 # This uninstalls all of gEDA/gaf
140 uninstall: utils_uninstall gsymcheck_uninstall gattrib_uninstall \
141 gnetlist_uninstall gschem_uninstall symbols_uninstall \
142 libgeda_uninstall docs_uninstall examples_uninstall
144 # This target assumes you have all .tar.gz files present in your local directory.
145 # It opens them up using tar -zxvf. Afterwards you can do
146 # "make install" to install your gEDA distribution.
147 open: docs_tarball \
148 examples_tarball \
149 gattrib_tarball \
150 gnetlist_tarball \
151 gschem_tarball \
152 gsymcheck_tarball \
153 symbols_tarball \
154 utils_tarball \
155 libgeda_tarball
157 # This does a maintainer-clean removes EVERYTHING that's config/built
158 maint: libgeda_maint symbols_maint gschem_maint gnetlist_maint gattrib_maint \
159 gsymcheck_maint utils_maint docs_maint \
160 examples_maint
162 # This does a plain clean
163 clean: libgeda_clean symbols_clean gschem_clean gnetlist_clean gattrib_clean \
164 gsymcheck_clean utils_clean docs_clean \
165 examples_clean
167 # This does a dist clean
168 distclean: libgeda_distclean symbols_distclean gschem_distclean \
169 gnetlist_distclean gattrib_distclean gsymcheck_distclean \
170 utils_distclean docs_distclean examples_distclean
172 # This just does the appropriate ./configure --prefix=...
173 config: libgeda_config symbols_config gschem_config gnetlist_config \
174 gattrib_config gsymcheck_config utils_config docs_config \
175 examples_config
177 # This recreates all ./configure scripts and Makefile.in files
178 reconfig: libgeda_reconfig symbols_reconfig gschem_reconfig gnetlist_reconfig \
179 gattrib_reconfig gsymcheck_reconfig utils_reconfig \
180 docs_reconfig examples_reconfig
182 # This creates all *.c files from *.nw files
183 src: libgeda_src gschem_src
185 # This recreates all ./configure scripts and Makefile.in files ready
186 # for distribution (removes dependency checking)
187 distconfig: libgeda_distconfig symbols_distconfig gschem_distconfig \
188 gnetlist_distconfig gattrib_distconfig gsymcheck_distconfig \
189 utils_distconfig docs_distconfig \
190 examples_distconfig
192 dist: libgeda_dist symbols_dist gschem_dist \
193 gnetlist_dist gattrib_dist gsymcheck_dist utils_dist \
194 docs_dist examples_dist
195 mv -f libgeda/libgeda*.tar.gz .
196 mv -f symbols/geda-symbols*.tar.gz .
197 mv -f gschem/geda-gschem*.tar.gz .
198 mv -f gnetlist/geda-gnetlist*.tar.gz .
199 mv -f gattrib/geda-gattrib*.tar.gz .
200 mv -f gsymcheck/geda-gsymcheck*.tar.gz .
201 mv -f utils/geda-utils*.tar.gz .
202 mv -f docs/geda-docs*.tar.gz .
203 mv -f examples/geda-examples*.tar.gz .
205 distcheck: libgeda_distcheck symbols_distcheck gschem_distcheck \
206 gnetlist_distcheck gattrib_distcheck gsymcheck_distcheck \
207 utils_distcheck docs_distcheck examples_distcheck
208 mv -f libgeda/libgeda*.tar.gz .
209 mv -f symbols/geda-symbols*.tar.gz .
210 mv -f gschem/geda-gschem*.tar.gz .
211 mv -f gnetlist/geda-gnetlist*.tar.gz .
212 mv -f gattrib/geda-gattrib*.tar.gz .
213 mv -f gsymcheck/geda-gsymcheck*.tar.gz .
214 mv -f utils/geda-utils*.tar.gz .
215 mv -f docs/geda-docs*.tar.gz .
216 mv -f examples/geda-examples*.tar.gz .
218 # This runs make check in all sub directories
219 check: libgeda_check gschem_check gnetlist_check gattrib_check \
220 gsymcheck_check symbols_check docs_check examples_check
222 ############################################################################
223 # Midlevel targets
224 ############################################################################
226 # Symbols
227 symbols: $(DIR_PREFIX)symbols$(CD_VERSION)/configure
228 @echo symbols Installed
230 symbols_maint: $(DIR_PREFIX)symbols$(CD_VERSION)/geda-font.scm
231 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ${MAKE} maintainer-clean )
233 symbols_clean: $(DIR_PREFIX)symbols$(CD_VERSION)/geda-font.scm
234 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ${MAKE} clean )
236 symbols_distclean: $(DIR_PREFIX)symbols$(CD_VERSION)/geda-font.scm
237 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ${MAKE} distclean )
239 symbols_install: $(DIR_PREFIX)symbols$(CD_VERSION)/configure \
240 $(DIR_PREFIX)symbols$(CD_VERSION)/Makefile
241 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ${MAKE} install )
243 symbols_uninstall: $(DIR_PREFIX)symbols$(CD_VERSION)/geda-font.scm
244 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ${MAKE} uninstall )
246 symbols_config: $(DIR_PREFIX)symbols$(CD_VERSION)/configure
247 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); \
248 ./configure --prefix=$(prefix) $(opts) )
250 symbols_reconfig:
251 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ./autogen.sh )
253 symbols_distconfig:
254 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ./autogen.sh )
256 symbols_dist:
257 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ${MAKE} dist )
259 symbols_distcheck: $(DIR_PREFIX)symbols$(CD_VERSION)/configure \
260 $(DIR_PREFIX)symbols$(CD_VERSION)/Makefile
261 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ${MAKE} distcheck )
263 symbols_check: $(DIR_PREFIX)symbols$(CD_VERSION)/geda-font.scm
264 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ${MAKE} check )
266 # gschem
267 gschem: $(DIR_PREFIX)gschem$(CD_VERSION)/configure \
268 $(DIR_PREFIX)gschem$(CD_VERSION)/config.h \
269 $(DIR_PREFIX)gschem$(CD_VERSION)/src/gschem
270 @echo gschem Built
272 gschem_install: $(DIR_PREFIX)gschem$(CD_VERSION)/configure \
273 $(DIR_PREFIX)gschem$(CD_VERSION)/config.h \
274 $(DIR_PREFIX)gschem$(CD_VERSION)/src/gschem
275 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} install )
277 gschem_uninstall: $(DIR_PREFIX)gschem$(CD_VERSION)/config.h
278 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} uninstall )
280 gschem_config: libgeda-pc-install \
281 $(DIR_PREFIX)gschem$(CD_VERSION)/configure
282 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); \
283 ./configure --prefix=$(prefix) $(opts) )
285 gschem_reconfig:
286 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ./autogen.sh )
288 gschem_src:
289 ( cd $(DIR_PREFIX)gschem$(CD_VERSION)/src; ${MAKE} src )
291 gschem_distconfig:
292 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ./autogen.sh )
294 gschem_dist:
295 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} dist )
297 gschem_distcheck: $(DIR_PREFIX)gschem$(CD_VERSION)/configure \
298 $(DIR_PREFIX)gschem$(CD_VERSION)/config.h
299 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} distcheck )
301 gschem_maint: $(DIR_PREFIX)gschem$(CD_VERSION)/config.h
302 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} maintainer-clean )
304 gschem_clean: $(DIR_PREFIX)gschem$(CD_VERSION)/config.h
305 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} clean )
307 gschem_distclean: $(DIR_PREFIX)gschem$(CD_VERSION)/config.h
308 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} distclean )
310 gschem_check: $(DIR_PREFIX)gschem$(CD_VERSION)/config.h
311 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} check )
313 # gnetlist
314 gnetlist: $(DIR_PREFIX)gnetlist$(CD_VERSION)/configure \
315 $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h \
316 $(DIR_PREFIX)gnetlist$(CD_VERSION)/src/gnetlist
317 @echo gnetlist Built
319 gnetlist_install: $(DIR_PREFIX)gnetlist$(CD_VERSION)/configure \
320 $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h \
321 $(DIR_PREFIX)gnetlist$(CD_VERSION)/src/gnetlist
322 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} install )
324 gnetlist_uninstall: $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h
325 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} uninstall )
327 gnetlist_maint: $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h
328 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} maintainer-clean )
330 gnetlist_clean: $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h
331 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} clean )
333 gnetlist_distclean: $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h
334 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} distclean )
336 gnetlist_check: $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h
337 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} check )
339 gnetlist_config: libgeda-pc-install \
340 $(DIR_PREFIX)gnetlist$(CD_VERSION)/configure
341 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); \
342 ./configure --prefix=$(prefix) $(opts) )
344 gnetlist_reconfig:
345 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ./autogen.sh )
347 gnetlist_distconfig:
348 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ./autogen.sh )
350 gnetlist_dist:
351 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} dist )
353 gnetlist_distcheck: $(DIR_PREFIX)gnetlist$(CD_VERSION)/configure \
354 $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h
355 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} distcheck )
357 # gattrib
358 gattrib: $(DIR_PREFIX)gattrib$(CD_VERSION)/configure \
359 $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h \
360 $(DIR_PREFIX)gattrib$(CD_VERSION)/src/gattrib
361 @echo gattrib Built
363 gattrib_install: $(DIR_PREFIX)gattrib$(CD_VERSION)/configure \
364 $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h \
365 $(DIR_PREFIX)gattrib$(CD_VERSION)/src/gattrib
366 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} install )
368 gattrib_uninstall: $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h
369 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} uninstall )
371 gattrib_maint: $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h
372 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} maintainer-clean )
374 gattrib_clean: $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h
375 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} clean )
377 gattrib_distclean: $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h
378 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} distclean )
380 gattrib_check: $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h
381 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} check )
383 gattrib_config: libgeda-pc-install \
384 $(DIR_PREFIX)gattrib$(CD_VERSION)/configure
385 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); \
386 ./configure --prefix=$(prefix) $(opts) )
388 gattrib_reconfig:
389 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ./autogen.sh )
391 gattrib_distconfig:
392 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ./autogen.sh )
394 gattrib_dist:
395 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} dist )
397 gattrib_distcheck: $(DIR_PREFIX)gattrib$(CD_VERSION)/configure \
398 $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h
399 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} distcheck )
401 # gsymcheck
402 gsymcheck: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/configure \
403 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h \
404 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/src/gsymcheck
405 @echo gsymcheck Built
407 gsymcheck_install: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/configure \
408 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h \
409 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/src/gsymcheck
410 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} install )
412 gsymcheck_uninstall: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h
413 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} uninstall )
415 gsymcheck_config: libgeda-pc-install \
416 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/configure
417 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); \
418 ./configure --prefix=$(prefix) $(opts) )
420 gsymcheck_reconfig:
421 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ./autogen.sh )
423 gsymcheck_distconfig:
424 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ./autogen.sh )
426 gsymcheck_dist:
427 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} dist )
429 gsymcheck_distcheck: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/configure \
430 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h
431 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} distcheck )
433 gsymcheck_maint: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h
434 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} maintainer-clean )
436 gsymcheck_clean: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h
437 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} clean )
439 gsymcheck_distclean: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h
440 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} distclean )
442 gsymcheck_check: $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h
443 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} check )
445 # utils
446 utils: $(DIR_PREFIX)utils$(CD_VERSION)/configure \
447 $(DIR_PREFIX)utils$(CD_VERSION)/config.h \
448 $(DIR_PREFIX)utils$(CD_VERSION)/src/gmk_sym
449 @echo utils Built
451 utils_install: $(DIR_PREFIX)utils$(CD_VERSION)/configure \
452 $(DIR_PREFIX)utils$(CD_VERSION)/config.h \
453 $(DIR_PREFIX)utils$(CD_VERSION)/src/gmk_sym
454 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} install )
456 utils_uninstall: $(DIR_PREFIX)utils$(CD_VERSION)/config.h
457 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} uninstall )
459 utils_config: libgeda-pc-install \
460 $(DIR_PREFIX)utils$(CD_VERSION)/configure
461 ( cd $(DIR_PREFIX)utils$(CD_VERSION); \
462 ./configure --prefix=$(prefix) $(opts) )
464 utils_reconfig:
465 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ./autogen.sh )
467 utils_distconfig:
468 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ./autogen.sh )
470 utils_dist:
471 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} dist )
473 utils_distcheck: $(DIR_PREFIX)utils$(CD_VERSION)/configure \
474 $(DIR_PREFIX)utils$(CD_VERSION)/config.h
475 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} distcheck )
477 utils_maint: $(DIR_PREFIX)utils$(CD_VERSION)/config.h
478 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} maintainer-clean )
480 utils_clean: $(DIR_PREFIX)utils$(CD_VERSION)/config.h
481 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} clean )
483 utils_distclean: $(DIR_PREFIX)utils$(CD_VERSION)/config.h
484 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} distclean )
486 # geda
487 geda: geda$(CD_VERSION)/configure \
488 geda$(CD_VERSION)/config.h \
489 geda$(CD_VERSION)/src/geda
490 @echo geda Built
492 geda_install: geda$(CD_VERSION)/configure \
493 geda$(CD_VERSION)/config.h \
494 geda$(CD_VERSION)/src/geda
495 ( cd geda$(CD_VERSION); ${MAKE} install )
497 geda_uninstall: geda$(CD_VERSION)/config.h
498 ( cd geda$(CD_VERSION); ${MAKE} uninstall )
500 geda_config: geda$(CD_VERSION)/configure
501 ( cd geda$(CD_VERSION); \
502 ./configure --prefix=$(prefix) $(opts) )
504 geda_reconfig:
505 ( cd geda$(CD_VERSION); ./autogen.sh )
507 geda_distconfig:
508 ( cd geda$(CD_VERSION); ./autogen.sh )
510 geda_dist:
511 ( cd geda$(CD_VERSION); ${MAKE} dist )
513 geda_distcheck: geda$(CD_VERSION)/configure \
514 geda$(CD_VERSION)/config.h
515 ( cd geda$(CD_VERSION); ${MAKE} distcheck )
517 geda_maint: geda$(CD_VERSION)/config.h
518 ( cd geda$(CD_VERSION); ${MAKE} maintainer-clean )
520 geda_clean: geda$(CD_VERSION)/config.h
521 ( cd geda$(CD_VERSION); ${MAKE} clean )
523 geda_distclean: geda$(CD_VERSION)/config.h
524 ( cd geda$(CD_VERSION); ${MAKE} distclean )
526 # setup
527 setup: $(DIR_PREFIX)setup$(CD_VERSION)/configure \
528 $(DIR_PREFIX)setup$(CD_VERSION)/config.h \
529 $(DIR_PREFIX)setup$(CD_VERSION)/src/setup
530 @echo setup Built
532 # Do not install the setup program, just build it
533 setup_install: $(DIR_PREFIX)setup$(CD_VERSION)/configure \
534 $(DIR_PREFIX)setup$(CD_VERSION)/config.h \
535 $(DIR_PREFIX)setup$(CD_VERSION)/src/setup
536 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} )
538 # No reason to do this, if you are not installing setup
539 setup_uninstall: $(DIR_PREFIX)setup$(CD_VERSION)/config.h
540 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} )
542 setup_config: $(DIR_PREFIX)setup$(CD_VERSION)/configure
543 ( cd $(DIR_PREFIX)setup$(CD_VERSION); \
544 ./configure --prefix=$(prefix) $(opts) )
546 setup_reconfig:
547 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ./autogen.sh )
549 setup_distconfig:
550 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ./autogen.sh )
552 setup_dist:
553 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} dist )
555 setup_distcheck: $(DIR_PREFIX)setup$(CD_VERSION)/configure \
556 $(DIR_PREFIX)setup$(CD_VERSION)/config.h
557 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} distcheck )
559 setup_maint: $(DIR_PREFIX)setup$(CD_VERSION)/config.h
560 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} maintainer-clean )
562 setup_clean: $(DIR_PREFIX)setup$(CD_VERSION)/config.h
563 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} clean )
565 setup_distclean: $(DIR_PREFIX)setup$(CD_VERSION)/config.h
566 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} distclean )
568 # libgeda (has no $(DIR_PREFIX)
569 libgeda: libgeda$(CD_VERSION)/configure \
570 libgeda$(CD_VERSION)/config.h \
571 libgeda$(CD_VERSION)/src/.libs/libgeda.a
572 @echo libgeda Installed
574 libgeda_maint: libgeda$(CD_VERSION)/config.h
575 ( cd libgeda$(CD_VERSION); ${MAKE} maintainer-clean )
577 libgeda_clean: libgeda$(CD_VERSION)/config.h
578 ( cd libgeda$(CD_VERSION); ${MAKE} clean )
580 libgeda_distclean: libgeda$(CD_VERSION)/config.h
581 ( cd libgeda$(CD_VERSION); ${MAKE} distclean )
583 libgeda_check: libgeda$(CD_VERSION)/config.h
584 ( cd libgeda$(CD_VERSION); ${MAKE} check )
586 libgeda_config: libgeda$(CD_VERSION)/configure
587 ( cd libgeda$(CD_VERSION); ./configure --prefix=$(prefix) $(opts) )
589 libgeda_reconfig:
590 ( cd libgeda$(CD_VERSION); ./autogen.sh )
592 libgeda_src:
593 ( cd libgeda$(CD_VERSION)/src; ${MAKE} src )
595 libgeda_distconfig:
596 ( cd libgeda$(CD_VERSION); ./autogen.sh )
598 libgeda_dist:
599 ( cd libgeda$(CD_VERSION); ${MAKE} dist )
601 libgeda_distcheck: libgeda$(CD_VERSION)/configure \
602 libgeda$(CD_VERSION)/config.h
603 ( cd libgeda$(CD_VERSION); ${MAKE} distcheck )
605 libgeda_uninstall: libgeda$(CD_VERSION)/config.h
606 ( cd libgeda$(CD_VERSION); ${MAKE} uninstall )
608 libgeda_install: libgeda$(CD_VERSION)/configure \
609 libgeda$(CD_VERSION)/config.h
610 ( cd libgeda$(CD_VERSION); ${MAKE} install )
612 # docs
613 docs: $(DIR_PREFIX)docs$(CD_VERSION)/configure \
614 $(DIR_PREFIX)docs$(CD_VERSION)/Makefile \
615 $(DIR_PREFIX)docs$(CD_VERSION)/attributes/attributes.pdf
616 @echo docs Built
618 docs_install: $(DIR_PREFIX)docs$(CD_VERSION)/configure \
619 $(DIR_PREFIX)docs$(CD_VERSION)/Makefile \
620 $(DIR_PREFIX)docs$(CD_VERSION)/attributes/attributes.pdf
621 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} install )
623 docs_uninstall: $(DIR_PREFIX)docs$(CD_VERSION)/Makefile
624 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} uninstall )
626 docs_config: $(DIR_PREFIX)docs$(CD_VERSION)/configure
627 ( cd $(DIR_PREFIX)docs$(CD_VERSION); \
628 ./configure --prefix=$(prefix) $(opts) )
630 docs_reconfig:
631 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ./autogen.sh )
633 docs_distconfig:
634 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ./autogen.sh )
636 docs_dist:
637 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} dist )
639 docs_distcheck: $(DIR_PREFIX)docs$(CD_VERSION)/configure \
640 $(DIR_PREFIX)docs$(CD_VERSION)/Makefile
641 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} distcheck )
643 docs_maint: $(DIR_PREFIX)docs$(CD_VERSION)/Makefile
644 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} maintainer-clean )
646 docs_clean: $(DIR_PREFIX)docs$(CD_VERSION)/Makefile
647 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} clean )
649 docs_distclean: $(DIR_PREFIX)docs$(CD_VERSION)/Makefile
650 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} distclean )
652 docs_check: $(DIR_PREFIX)docs$(CD_VERSION)/Makefile
653 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} check )
655 # examples
656 examples: $(DIR_PREFIX)examples$(CD_VERSION)/configure \
657 $(DIR_PREFIX)examples$(CD_VERSION)/Makefile
658 @echo examples Built
660 examples_install: $(DIR_PREFIX)examples$(CD_VERSION)/configure \
661 $(DIR_PREFIX)examples$(CD_VERSION)/Makefile
662 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ${MAKE} install )
664 examples_uninstall: $(DIR_PREFIX)examples$(CD_VERSION)/Makefile
665 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ${MAKE} uninstall )
667 examples_config: $(DIR_PREFIX)examples$(CD_VERSION)/configure
668 ( cd $(DIR_PREFIX)examples$(CD_VERSION); \
669 ./configure --prefix=$(prefix) $(opts) )
671 examples_reconfig:
672 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ./autogen.sh )
673 examples_distconfig:
674 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ./autogen.sh )
676 examples_dist:
677 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ${MAKE} dist )
679 examples_distcheck: $(DIR_PREFIX)examples$(CD_VERSION)/configure \
680 $(DIR_PREFIX)examples$(CD_VERSION)/Makefile
681 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ${MAKE} distcheck )
683 examples_maint: $(DIR_PREFIX)examples$(CD_VERSION)/Makefile
684 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ${MAKE} maintainer-clean )
686 examples_clean: $(DIR_PREFIX)examples$(CD_VERSION)/Makefile
687 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ${MAKE} clean )
689 examples_distclean: $(DIR_PREFIX)examples$(CD_VERSION)/Makefile
690 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ${MAKE} distclean )
692 examples_check: $(DIR_PREFIX)examples$(CD_VERSION)/configure
693 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ${MAKE} check )
695 ############################################################################
696 # Configure related targets
697 ############################################################################
699 libgeda$(CD_VERSION)/config.h:
700 ( cd libgeda$(CD_VERSION); ./configure --prefix=$(prefix) $(opts) )
702 libgeda$(CD_VERSION)/configure:
703 ( cd libgeda$(CD_VERSION); ./autogen.sh)
705 $(DIR_PREFIX)gschem$(CD_VERSION)/config.h:
706 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); \
707 ./configure --prefix=$(prefix) $(opts) )
709 $(DIR_PREFIX)gschem$(CD_VERSION)/configure:
710 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ./autogen.sh )
712 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/config.h:
713 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); \
714 ./configure --prefix=$(prefix) $(opts) )
716 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/configure:
717 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ./autogen.sh )
719 $(DIR_PREFIX)utils$(CD_VERSION)/config.h:
720 ( cd $(DIR_PREFIX)utils$(CD_VERSION); \
721 ./configure --prefix=$(prefix) $(opts) )
723 $(DIR_PREFIX)utils$(CD_VERSION)/configure:
724 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ./autogen.sh )
726 geda$(CD_VERSION)/config.h:
727 ( cd geda$(CD_VERSION); ./configure --prefix=$(prefix) $(opts) )
729 geda$(CD_VERSION)/configure:
730 ( cd geda$(CD_VERSION); ./autogen.sh )
732 $(DIR_PREFIX)setup$(CD_VERSION)/config.h:
733 ( cd $(DIR_PREFIX)setup$(CD_VERSION); \
734 ./configure --prefix=$(prefix) $(opts) )
736 $(DIR_PREFIX)setup$(CD_VERSION)/configure:
737 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ./autogen.sh )
739 $(DIR_PREFIX)gnetlist$(CD_VERSION)/config.h:
740 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); \
741 ./configure --prefix=$(prefix) $(opts) )
743 $(DIR_PREFIX)gnetlist$(CD_VERSION)/configure:
744 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ./autogen.sh )
746 $(DIR_PREFIX)gattrib$(CD_VERSION)/config.h:
747 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); \
748 ./configure --prefix=$(prefix) $(opts) )
750 $(DIR_PREFIX)gattrib$(CD_VERSION)/configure:
751 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ./autogen.sh )
753 $(DIR_PREFIX)symbols$(CD_VERSION)/geda-font.scm:
754 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); \
755 ./configure --prefix=$(prefix) $(opts) )
757 $(DIR_PREFIX)symbols$(CD_VERSION)/Makefile:
758 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); \
759 ./configure --prefix=$(prefix) $(opts) )
761 $(DIR_PREFIX)symbols$(CD_VERSION)/configure:
762 ( cd $(DIR_PREFIX)symbols$(CD_VERSION); ./autogen.sh )
764 $(DIR_PREFIX)docs$(CD_VERSION)/Makefile:
765 ( cd $(DIR_PREFIX)docs$(CD_VERSION); \
766 ./configure --prefix=$(prefix) $(opts) )
768 $(DIR_PREFIX)docs$(CD_VERSION)/configure:
769 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ./autogen.sh )
771 $(DIR_PREFIX)examples$(CD_VERSION)/Makefile:
772 ( cd $(DIR_PREFIX)examples$(CD_VERSION); \
773 ./configure --prefix=$(prefix) $(opts) )
775 $(DIR_PREFIX)examples$(CD_VERSION)/configure:
776 ( cd $(DIR_PREFIX)examples$(CD_VERSION); ./autogen.sh )
778 ############################################################################
779 # Executable related related targets
780 ############################################################################
782 $(DIR_PREFIX)gschem$(CD_VERSION)/src/gschem:
783 ( cd $(DIR_PREFIX)gschem$(CD_VERSION); ${MAKE} )
785 $(DIR_PREFIX)gsymcheck$(CD_VERSION)/src/gsymcheck:
786 ( cd $(DIR_PREFIX)gsymcheck$(CD_VERSION); ${MAKE} )
788 $(DIR_PREFIX)gnetlist$(CD_VERSION)/src/gnetlist:
789 ( cd $(DIR_PREFIX)gnetlist$(CD_VERSION); ${MAKE} )
791 $(DIR_PREFIX)gattrib$(CD_VERSION)/src/gattrib:
792 ( cd $(DIR_PREFIX)gattrib$(CD_VERSION); ${MAKE} )
794 $(DIR_PREFIX)utils$(CD_VERSION)/src/gmk_sym:
795 ( cd $(DIR_PREFIX)utils$(CD_VERSION); ${MAKE} )
797 geda$(CD_VERSION)/src/geda:
798 ( cd geda$(CD_VERSION); ${MAKE} )
800 $(DIR_PREFIX)setup$(CD_VERSION)/src/setup:
801 ( cd $(DIR_PREFIX)setup$(CD_VERSION); ${MAKE} )
803 $(DIR_PREFIX)docs$(CD_VERSION)/attributes/attributes.pdf:
804 ( cd $(DIR_PREFIX)docs$(CD_VERSION); ${MAKE} )
806 libgeda$(CD_VERSION)/src/.libs/libgeda.a:
807 ( cd libgeda$(CD_VERSION); ${MAKE} install )
809 ############################################################################
810 # Script related related targets
811 ############################################################################
813 libgeda-pc-install:
814 ( cd libgeda$(CD_VERSION); ${MAKE} libgeda-pc-install )
817 ############################################################################
818 # Targets for opening up the tarballs
819 ############################################################################
821 geda_tarball: geda$(CD_VERSION).tar.gz
822 tar -zxvf geda$(CD_VERSION).tar.gz
824 docs_tarball: $(DIR_PREFIX)docs$(CD_VERSION).tar.gz
825 tar -zxvf $(DIR_PREFIX)docs$(CD_VERSION).tar.gz
827 examples_tarball: $(DIR_PREFIX)examples$(CD_VERSION).tar.gz
828 tar -zxvf $(DIR_PREFIX)examples$(CD_VERSION).tar.gz
830 gattrib_tarball: $(DIR_PREFIX)gattrib$(CD_VERSION).tar.gz
831 tar -zxvf $(DIR_PREFIX)gattrib$(CD_VERSION).tar.gz
833 gnetlist_tarball: $(DIR_PREFIX)gnetlist$(CD_VERSION).tar.gz
834 tar -zxvf $(DIR_PREFIX)gnetlist$(CD_VERSION).tar.gz
836 gschem_tarball: $(DIR_PREFIX)gschem$(CD_VERSION).tar.gz
837 tar -zxvf $(DIR_PREFIX)gschem$(CD_VERSION).tar.gz
839 gsymcheck_tarball: $(DIR_PREFIX)gsymcheck$(CD_VERSION).tar.gz
840 tar -zxvf $(DIR_PREFIX)gsymcheck$(CD_VERSION).tar.gz
842 setup_tarball: $(DIR_PREFIX)setup$(CD_VERSION).tar.gz
843 tar -zxvf $(DIR_PREFIX)setup$(CD_VERSION).tar.gz
845 symbols_tarball: $(DIR_PREFIX)symbols$(CD_VERSION).tar.gz
846 tar -zxvf $(DIR_PREFIX)symbols$(CD_VERSION).tar.gz
848 utils_tarball: $(DIR_PREFIX)utils$(CD_VERSION).tar.gz
849 tar -zxvf $(DIR_PREFIX)utils$(CD_VERSION).tar.gz
851 libgeda_tarball: libgeda$(CD_VERSION).tar.gz
852 tar -zxvf libgeda$(CD_VERSION).tar.gz